Add minimize and maximize button

Added an minimize and maximize button to the main window
This commit is contained in:
Yuri Gabriel
2024-02-09 22:09:31 -03:00
parent c842584cfe
commit 9b87edc10b
6 changed files with 131 additions and 3 deletions

View File

@ -8,6 +8,7 @@
Background="{MainBackgroundColor}"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
Name="MainWindow"
Title="Chris Titus Tech's Windows Utility" Height="800" Width="1280">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="0" CornerRadius="10"/>
@ -619,6 +620,8 @@
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="50px"/>
<ColumnDefinition Width="50px"/>
<ColumnDefinition Width="50px"/>
<ColumnDefinition Width="50px"/>
</Grid.ColumnDefinitions>
<TextBox
@ -669,6 +672,26 @@
<Button
Grid.Column="2"
Content="&#x2D;" BorderThickness="0"
BorderBrush="Transparent"
Background="{MainBackgroundColor}"
Width="35" Height="35"
HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="0,5,5,0"
FontFamily="Arial"
Foreground="{MainForegroundColor}" FontSize="18" Name="WPFMinimizeButton" />
<Button
Grid.Column="3"
Content="&#9633;" BorderThickness="0"
BorderBrush="Transparent"
Background="{MainBackgroundColor}"
Width="35" Height="35"
HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="0,5,5,0"
FontFamily="Arial"
Foreground="{MainForegroundColor}" FontSize="18" Name="WPFMaximizeButton" />
<Button
Grid.Column="4"
Content="&#xD7;" BorderThickness="0"
BorderBrush="Transparent"
Background="{MainBackgroundColor}"