forked from changbowen/Ken-Burns-Slideshow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OptWindow.xaml
147 lines (144 loc) · 11 KB
/
OptWindow.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Ken_Burns_Slideshow" x:Class="OptWindow" SizeToContent="WidthAndHeight"
Title="{StaticResource options}" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"
Icon="KenBurns.ico" UseLayoutRounding="True">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="2*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<GroupBox Grid.Column="0">
<GroupBox.Header>
<Run Text="{Binding Mode=OneTime, Source={StaticResource image folders}, StringFormat='* {0}'}"/>
</GroupBox.Header>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListBox Grid.Row="0" x:Name="LB_ImgFolder" ToolTip="{StaticResource tip_imagefolder}" Margin="2" MinHeight="80" MinWidth="150"/>
<CheckBox Grid.Row="1" x:Name="CB_Img_Recur" Margin="2,0" Content="{StaticResource include subfolders}"/>
<UniformGrid Grid.Row="2" Columns="3" Margin="2">
<Button x:Name="Btn_Img_Add" Content="{StaticResource add}" Margin="2,0"/>
<Button x:Name="Btn_Img_Rmv" Content="{StaticResource remove}" Margin="2,0"/>
<Button x:Name="Btn_Img_Edit" Content="{StaticResource edit}" Margin="2,0"/>
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.Column="1">
<GroupBox.Header>
<Run Text="{Binding Mode=OneTime, Source={StaticResource music folders}, StringFormat='* {0}'}"/>
</GroupBox.Header>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListBox Grid.Row="0" x:Name="LB_BGMFolder" ToolTip="{StaticResource tip_musicfolder}" Margin="2" MinHeight="80" MinWidth="150"/>
<CheckBox Grid.Row="1" x:Name="CB_BGM_Recur" Margin="2,0" Content="{StaticResource include subfolders}"/>
<UniformGrid Grid.Row="2" Columns="3" Margin="2">
<Button x:Name="Btn_BGM_Add" Content="{StaticResource add}" Margin="2,0"/>
<Button x:Name="Btn_BGM_Rmv" Content="{StaticResource remove}" Margin="2,0"/>
<Button x:Name="Btn_BGM_Edit" Content="{StaticResource edit}" Margin="2,0"/>
</UniformGrid>
</Grid>
</GroupBox>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<GroupBox Grid.Column="0" Header="{StaticResource details}">
<Grid Margin="5,0">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="97*"/>
<ColumnDefinition Width="57*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{StaticResource framerate}" Margin="5"/>
<TextBox Grid.Row="0" Grid.Column="1" x:Name="TB_Framerate" VerticalAlignment="Center" HorizontalAlignment="Right" MinWidth="40" Padding="1,0" ToolTip="{StaticResource tip_framerate}" Margin="5"/>
<TextBlock Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Mode=OneTime, Source={StaticResource duration}, StringFormat='* {0} (>4s)'}" Margin="5"/>
<TextBox Grid.Row="1" Grid.Column="1" x:Name="TB_Duration" VerticalAlignment="Center" HorizontalAlignment="Right" MinWidth="40" Padding="1,0" ToolTip="{StaticResource tip_duration}" Margin="5"/>
<TextBlock Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{StaticResource scaling quality}" Margin="5"/>
<ComboBox Grid.Row="2" Grid.Column="1" x:Name="CbB_ScaleMode" VerticalAlignment="Center" ToolTip="{StaticResource tip_scalemode}" Margin="5">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Value}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<DockPanel Grid.Row="3" Grid.Column="1" Margin="5">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="{StaticResource multiplier}"/>
<TextBox x:Name="TB_LoadQuality" VerticalAlignment="Center" MinWidth="40" HorizontalAlignment="Right" Padding="1,0" ToolTip="{StaticResource tip_loadquality}" Margin="5,0,0,0"/>
</DockPanel>
<CheckBox Grid.Row="3" x:Name="CB_ResLk" Content="{StaticResource resolution lock}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{StaticResource tip_loadquality}" IsChecked="True" Margin="5"/>
<CheckBox Grid.Row="4" x:Name="CB_Fadeout" Content="{StaticResource fadeout}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{StaticResource tip_fadeout}" IsChecked="True" IsEnabled="False" Margin="5"/>
<CheckBox Grid.Row="5" x:Name="CB_VerOptm" Content="{StaticResource vertical optimize}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{StaticResource tip_veroptm}" IsChecked="True" Margin="5"/>
<CheckBox Grid.Row="6" x:Name="CB_HorOptm" Content="{StaticResource horizontal optimize}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{StaticResource tip_horoptm}" IsChecked="True" Margin="5"/>
<DockPanel Grid.Row="5" Grid.Column="1" Margin="5">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" Text="{Binding Mode=OneTime, Source={StaticResource ratio}, StringFormat='\{0} (0 - 1)'}"/>
<TextBox x:Name="TB_VORatio" HorizontalAlignment="Right" VerticalAlignment="Center" MinWidth="40" ToolTip="{StaticResource tip_veroptmR}" Padding="1,0" Margin="5,0,0,0"/>
</DockPanel>
<DockPanel Grid.Row="6" Grid.Column="1" Margin="5">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" Text="{Binding Mode=OneTime, Source={StaticResource ratio}, StringFormat='\{0} (0 - 1)'}"/>
<TextBox x:Name="TB_HORatio" HorizontalAlignment="Right" VerticalAlignment="Center" MinWidth="40" ToolTip="{StaticResource tip_horoptmR}" Padding="1,0" Margin="5,0,0,0"/>
</DockPanel>
<CheckBox Grid.Row="7" x:Name="CB_VerLk" Content="{StaticResource vertical lock}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{StaticResource tip_verlock}" IsChecked="True" Margin="5"/>
<TextBlock Grid.Row="8" Text="{StaticResource blur mode}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"/>
<ComboBox Grid.Row="8" Grid.Column="1" x:Name="CbB_BlurMode" VerticalAlignment="Center" ToolTip="{StaticResource tip_blurmode}" Margin="5">
<ComboBoxItem Content="{StaticResource blur_none}"/>
<ComboBoxItem Content="{StaticResource blur_fadein}"/>
<ComboBoxItem Content="{StaticResource blur_fadeout}"/>
<ComboBoxItem Content="{StaticResource blur_fadeinout}"/>
</ComboBox>
</Grid>
</GroupBox>
<DockPanel Grid.Column="1" Margin="5,0">
<StackPanel DockPanel.Dock="Top">
<TextBlock TextWrapping="Wrap" Text="{Binding Mode=OneTime, Source={StaticResource active transition},StringFormat='* {0}'}"/>
<ComboBox x:Name="CbB_Transit" SelectedIndex="0" Margin="0,5,0,10">
<ComboBoxItem Content="{StaticResource trans_kenburns}"/>
<ComboBoxItem Content="{StaticResource trans_breath}"/>
<ComboBoxItem Content="{StaticResource trans_throw}"/>
<ComboBoxItem Content="{StaticResource trans_random}"/>
</ComboBox>
<TextBlock TextWrapping="Wrap" Text="{Binding Mode=Onetime, Source={StaticResource loading mode}, StringFormat='* {0}'}"/>
<ComboBox x:Name="CbB_LoadMode" SelectedIndex="0" Margin="0,5,0,10" ToolTip="{StaticResource tip_loadmode}">
<ComboBoxItem Content="{StaticResource load_onebyone}"/>
<ComboBoxItem Content="{StaticResource load_allatonce}"/>
</ComboBox>
<CheckBox x:Name="CB_RandomizeV" Margin="0,5,0,0" ContentStringFormat="* {0}" Content="{StaticResource randomizeV}" ToolTip="{StaticResource tip_randomizeV}"/>
<CheckBox x:Name="CB_RandomizeA" Margin="0,5,0,0" ContentStringFormat="* {0}" Content="{StaticResource randomizeA}"/>
<CheckBox x:Name="CB_ShowControl" Margin="0,5,0,0" ContentStringFormat="* {0}" Content="{StaticResource showcontrol}" ToolTip="{StaticResource tip_showcontrol}"/>
</StackPanel>
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom">
<Button x:Name="Btn_FolderAsso" Content="{StaticResource register menu}" ToolTip="{StaticResource tip_registermenu}" MinHeight="25"/>
<Button x:Name="Btn_OK" Margin="0,5" Content="{StaticResource ok}" IsDefault="True" MinHeight="25"/>
<Button x:Name="Btn_Cancel" Content="{StaticResource cancel}" IsCancel="True" MinHeight="25"/>
</StackPanel>
</DockPanel>
</Grid>
<TextBlock Grid.Row="2" TextWrapping="Wrap" Text="{StaticResource star}" Margin="0,2"/>
</Grid>
</Window>