-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
56 lines (56 loc) · 2 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Window
x:Class="AlarmApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:AlarmApp"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Alarms"
Width="800"
Height="450"
MinWidth="700"
MinHeight="450"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Window.Style>
<Style BasedOn="{StaticResource {x:Type Window}}" TargetType="Window" />
</Window.Style>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="100" />
<ColumnDefinition MinWidth="500" />
<ColumnDefinition Width="20" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10" />
<RowDefinition Height="50" />
<RowDefinition MinHeight="370" />
</Grid.RowDefinitions>
<Button
x:Name="AddAlarmButton"
Grid.Row="1"
Grid.Column="2"
Height="30"
MinWidth="100"
HorizontalAlignment="Right"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
Click="AddAlarmButton_Click"
Content="Add Alarm" />
<DataGrid
x:Name="Alarms_DataGrid"
Grid.Row="2"
Grid.Column="2"
Margin="0,20,0,0"
AutoGenerateColumns="False"
CanUserAddRows="False"
ItemsSource="{Binding Path=Alarms}">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding Name}" Header="Name" />
<DataGridTextColumn Binding="{Binding RelativeTime}" Header="Time left" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</Window>