forked from jeremybytes/SlideShow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsView.xaml
More file actions
131 lines (113 loc) · 5.61 KB
/
Copy pathSettingsView.xaml
File metadata and controls
131 lines (113 loc) · 5.61 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<UserControl x:Class="SlideShow.SettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SlideShow"
mc:Ignorable="d"
d:DesignHeight="800" d:DesignWidth="300">
<UserControl.Resources>
<Style TargetType="Label">
<Setter Property="Foreground" Value="White"/>
<Setter Property="Margin" Value="0"/>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Foreground" Value="White"/>
</Style>
<Style TargetType="RadioButton">
<Setter Property="Foreground" Value="White"/>
<Setter Property="Margin" Value="3"/>
</Style>
<Style TargetType="Button">
<Setter Property="Background" Value="LightGray"/>
</Style>
</UserControl.Resources>
<Border Background="#545454" BorderBrush="LightBlue"
BorderThickness="2" CornerRadius="8"
Margin="16" Padding="3"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Grid.IsSharedSizeScope="True">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Content="Image arrangement"
FontWeight="DemiBold"/>
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="12,0,0,0">
<RadioButton Content="Shuffle" IsChecked="{Binding Shuffle}"/>
<RadioButton Content="Sort" IsChecked="{Binding Sort}"/>
</StackPanel>
<Label Grid.Row="2" Content="Interval"
FontWeight="DemiBold"/>
<StackPanel Grid.Row="3" Orientation="Horizontal" Margin="12,0,0,0">
<TextBox Margin="0" Width="60" VerticalAlignment="Center">
<TextBox.Text>
<Binding Path="Interval" Mode="TwoWay"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<local:ValueRangeRule Min="1" Max="3600"/>
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
<Label Content="seconds"/>
</StackPanel>
<CheckBox Grid.Row="4" Margin="12"
Content="Show image label"
IsChecked="{Binding ShowInfo}"/>
<Label Grid.Row="5"
Content="Keyboard sortcuts"
FontWeight="DemiBold"/>
<Grid Grid.Row="6" Margin="12,0">
<Grid.Resources>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="Space"/>
<Label Grid.Row="0" Grid.Column="1" Content="Pause/Resume"/>
<Label Grid.Row="1" Grid.Column="0" Content="Page Down Right Enter"/>
<Label Grid.Row="1" Grid.Column="1" Content="Next image" VerticalAlignment="Center"/>
<Label Grid.Row="2" Grid.Column="0" Content="Page Up Left"/>
<Label Grid.Row="2" Grid.Column="1" Content="Previous image" VerticalAlignment="Center"/>
<Label Grid.Row="3" Grid.Column="0" Content="Ctrl + G"/>
<Label Grid.Row="3" Grid.Column="1" Content="Go to image"/>
<Label Grid.Row="4" Grid.Column="0" Content="Ctrl + O"/>
<Label Grid.Row="4" Grid.Column="1" Content="Open image directory"/>
<Label Grid.Row="5" Grid.Column="0" Content="F11"/>
<Label Grid.Row="5" Grid.Column="1" Content="Full screen"/>
<Label Grid.Row="6" Grid.Column="0" Content="Esc"/>
<Label Grid.Row="6" Grid.Column="1" Content="Exit"/>
<Label Grid.Row="7" Grid.Column="0" Content="F1 ?"/>
<Label Grid.Row="7" Grid.Column="1" Content="Help and Settings" VerticalAlignment="Center"/>
</Grid>
<Button Grid.Row="7" Margin="3"
Content="OK"
Command="{Binding OKCommand}"
HorizontalAlignment="Right"
Padding="24,3"/>
</Grid>
</Border>
</UserControl>