-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProperties.xaml
93 lines (88 loc) · 4.99 KB
/
Properties.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Window x:Class="SylverInk.Properties"
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:SylverInk"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=local:ContextSettings}"
Title="Sylver Ink: Properties" Height="575" Width="350" Loaded="Properties_Loaded" MouseLeftButtonDown="Drag">
<Grid Background="{Binding MenuBackground}">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Popup Height="25" Placement="Mouse" StaysOpen="False" Width="90" x:Name="TimeSelector">
<Border BorderBrush="{Binding MenuForeground}" BorderThickness="1">
<Grid Background="{Binding MenuBackground}" HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ComboBox Name="Hour" SelectionChanged="Hour_Selected"/>
<ComboBox Grid.Column="1" Name="Minute" SelectionChanged="Minute_Selected"/>
</Grid>
</Border>
</Popup>
<Grid Grid.ColumnSpan="2" Margin="0,5">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<Separator Grid.ColumnSpan="2" Grid.Row="2"/>
<Label Content="Created:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="3"/>
<Label Content="Format:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="4"/>
<Label Content="Path:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="5"/>
<Separator Grid.ColumnSpan="2" Grid.Row="6"/>
<Label Content="Number of notes:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="7"/>
<Label Content="Average note length:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="8"/>
<Label Content="Total length:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="9"/>
<Label Content="Longest note:" FontWeight="Bold" HorizontalAlignment="Right" Margin="5,0" Grid.Row="10"/>
<TextBlock Grid.ColumnSpan="2" FontFamily="{Binding MainFontFamily}" FontSize="{Binding HeaderFontSize}" FontWeight="Bold" Foreground="{Binding MenuForeground}" Margin="5,0" Grid.Row="1" TextAlignment="Center" TextWrapping="WrapWithOverflow" VerticalAlignment="Center" x:Name="DBNameLabel"/>
<Label Grid.Column="1" HorizontalAlignment="Left" Grid.Row="3" x:Name="DBCreatedLabel"/>
<Label Grid.Column="1" HorizontalAlignment="Left" Grid.Row="4" x:Name="DBFormatLabel"/>
<TextBlock Grid.Column="1" FontFamily="{Binding MainFontFamily}" FontSize="{Binding MainFontSize}" Foreground="{Binding MenuForeground}" HorizontalAlignment="Left" Margin="5,0" Grid.Row="5" TextAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Center" x:Name="DBPathLabel"/>
<Label Grid.Column="1" HorizontalAlignment="Left" Grid.Row="7" x:Name="DBNotesLabel"/>
<Label Grid.Column="1" HorizontalAlignment="Left" Grid.Row="8" x:Name="DBAvgLabel"/>
<Label Grid.Column="1" HorizontalAlignment="Left" Grid.Row="9" x:Name="DBTotalLabel"/>
<Label Grid.Column="1" HorizontalAlignment="Left" Grid.Row="10" x:Name="DBLongestLabel"/>
</Grid>
<Separator Grid.ColumnSpan="2" Grid.Row="1"/>
<Grid Margin="0,5" Grid.ColumnSpan="2" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label FontStyle="Italic" HorizontalAlignment="Right" Margin="10" VerticalAlignment="Center">
<TextBlock>Restore the database<LineBreak/>to a previous state</TextBlock>
</Label>
<StackPanel Grid.Column="1" Margin="0,10,0,0" VerticalAlignment="Center">
<DatePicker MaxWidth="120" SelectedDateChanged="SelectedDateChanged" x:Name="ReversionDate"/>
<Button Click="SelectTime" Content="12:00 AM" FontStyle="Normal" Margin="0,5" Width="70" x:Name="SelectedTime"/>
<Button Click="RestoreClick" Content="Restore" IsEnabled="False" Margin="0,10" x:Name="RestoreButton"/>
</StackPanel>
</Grid>
<Separator Grid.ColumnSpan="2" Grid.Row="3"/>
<Button Click="CloseClick" Content="Close" Margin="0,20" Grid.ColumnSpan="2" Grid.Row="4"/>
</Grid>
</Window>