-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
42 lines (42 loc) · 2.63 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<Window x:Class="MyPomodoroApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MyPomodoroApp"
mc:Ignorable="d"
Title="MyPomodoroApp" Height="450" Width="450" Loaded="Window_Loaded" WindowStyle="None" ResizeMode="NoResize">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="31*"/>
<ColumnDefinition Width="419*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="50
"/>
<RowDefinition/>
</Grid.RowDefinitions>
<!--Header-->
<Grid x:Name="GridHeader" Background="#FF588157" MouseLeftButtonDown="Grid_MouseLeftButtonDown" Grid.ColumnSpan="2">
<Grid HorizontalAlignment="Right">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding ElementName=GridHeader, Path=ActualHeight}"></ColumnDefinition>
<ColumnDefinition Width="{Binding ElementName=GridHeader, Path=ActualHeight}"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button x:Name="MinimizeButton" Content="-" Click="MinimizeButton_Click" Background="#00DDDDDD" BorderBrush="#00707070" Foreground="#FFDAD7CD" Margin="0,0,0,5" FontSize="24"/>
<Button x:Name="CloseButton" Content="x" Grid.Column="1" Click="CloseButton_Click" Background="#00DDDDDD" BorderBrush="#00707070" Foreground="#FFDAD7CD" Margin="0,0,0,5" FontSize="24"></Button>
</Grid>
<Grid HorizontalAlignment="Left">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding ElementName=GridHeader, Path=ActualHeight}"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button x:Name="SettingsButton" Content="~" FontFamily="Bahnschrift" Background="#00DDDDDD" BorderBrush="#00707070" Foreground="#FFDAD7CD" FontSize="24" Click="SettingsButton_Click"/>
</Grid>
<Label x:Name="AppNameLabel" Content="MyPomodoroApp" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Bahnschrift" FontSize="18" Foreground="#FFDAD7CD"/>
</Grid>
<!--Content-->
<Grid Grid.Row="1" Background="#FF588157" Grid.ColumnSpan="2">
<Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" JournalOwnership="OwnsJournal"/>
</Grid>
</Grid>
</Window>