|
1 | 1 | <Window x:Class="VidCoder.View.OptionsDialog" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Model="clr-namespace:VidCoder.Model" Title="Options" Height="415" Width="571" |
4 | | - Style="{StaticResource NormalWindow}" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Closing="Window_Closing"> |
| 4 | + Style="{StaticResource NormalWindow}" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Closing="Window_Closing" xmlns:my="clr-namespace:VidCoder.Controls"> |
5 | 5 | <Window.Resources> |
6 | 6 | <Style x:Key="EmphasizedTitle" TargetType="TextBlock"> |
7 | 7 | <Setter Property="VerticalAlignment" Value="Center" /> |
|
133 | 133 | </TabItem> |
134 | 134 | <TabItem Header="Advanced"> |
135 | 135 | <Grid> |
| 136 | + <Grid.RowDefinitions> |
| 137 | + <RowDefinition Height="Auto" /> |
| 138 | + <RowDefinition Height="22" /> |
| 139 | + <RowDefinition Height="22" /> |
| 140 | + <RowDefinition Height="22" /> |
| 141 | + <RowDefinition Height="Auto" /> |
| 142 | + <RowDefinition Height="24" /> |
| 143 | + <RowDefinition Height="Auto" /> |
| 144 | + </Grid.RowDefinitions> |
136 | 145 | <Label Content="Number of picture previews to scan:" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label3" VerticalAlignment="Top" /> |
137 | 146 | <ComboBox |
138 | 147 | Height="23" HorizontalAlignment="Left" Margin="211,8,0,0" Name="comboBox1" VerticalAlignment="Top" Width="61" |
|
145 | 154 | <ComboBoxItem>30</ComboBoxItem> |
146 | 155 | </ComboBox> |
147 | 156 | <CheckBox |
| 157 | + Grid.Row="1" |
148 | 158 | Content="Allow setting custom name on audio tracks (limited player support)" |
149 | 159 | IsChecked="{Binding ShowAudioTrackNameField}" |
150 | | - Height="16" HorizontalAlignment="Left" Margin="15,40,0,0" VerticalAlignment="Top" /> |
| 160 | + Height="16" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Center" /> |
151 | 161 | <CheckBox |
| 162 | + Grid.Row="2" |
152 | 163 | Content="Enable LibDVDNav (change requires program restart)" |
153 | 164 | IsChecked="{Binding EnableLibDvdNav}" |
154 | | - Height="16" HorizontalAlignment="Left" Margin="15,62,0,0" VerticalAlignment="Top" /> |
| 165 | + Height="16" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Center" /> |
155 | 166 | <CheckBox |
| 167 | + Grid.Row="3" |
156 | 168 | Content="Keep scans after completion (allows editing completed items)" |
157 | 169 | IsChecked="{Binding KeepScansAfterCompletion}" |
158 | | - Height="16" HorizontalAlignment="Left" Margin="15,84,0,0" VerticalAlignment="Top" /> |
159 | | - <Label Content="Logging Verbosity:" Height="28" HorizontalAlignment="Left" Margin="6,108,0,0" VerticalAlignment="Top" /> |
160 | | - <ComboBox Height="23" HorizontalAlignment="Left" Margin="121,111,0,0" SelectedValue="{Binding LogVerbosity}" SelectedValuePath="Content" VerticalAlignment="Top" Width="42"> |
| 170 | + Height="16" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Center" /> |
| 171 | + <Label |
| 172 | + Grid.Row="4" |
| 173 | + Content="Logging Verbosity:" Height="28" HorizontalAlignment="Left" Margin="6,0,0,0" VerticalAlignment="Center" /> |
| 174 | + <ComboBox |
| 175 | + Grid.Row="4" |
| 176 | + Height="23" HorizontalAlignment="Left" Margin="121,0,0,0" SelectedValue="{Binding LogVerbosity}" SelectedValuePath="Content" VerticalAlignment="Center" Width="42"> |
161 | 177 | <ComboBoxItem Content="0" /> |
162 | 178 | <ComboBoxItem Content="1" /> |
163 | 179 | <ComboBoxItem Content="2" /> |
164 | 180 | </ComboBox> |
165 | | - <TextBlock Height="40" HorizontalAlignment="Left" Margin="182,113,0,0" Text="Log verbosity will take effect on next scan or program restart." TextWrapping="Wrap" VerticalAlignment="Top" Visibility="{Binding LogVerbosityWarningVisible, Converter={StaticResource VisibilityConverter}}" /> |
| 181 | + <TextBlock |
| 182 | + Grid.Row="4" |
| 183 | + HorizontalAlignment="Left" Margin="182,0,0,0" Text="Log verbosity will take effect on next scan or program restart." TextWrapping="Wrap" VerticalAlignment="Center" Visibility="{Binding LogVerbosityWarningVisible, Converter={StaticResource VisibilityConverter}}" /> |
| 184 | + |
| 185 | + <TextBlock |
| 186 | + Grid.Row="5" |
| 187 | + Height="23" HorizontalAlignment="Left" Margin="11,5,0,0" Text="Minimum length of title to scan (seconds):" VerticalAlignment="Center" /> |
| 188 | + <my:NumberBox |
| 189 | + Grid.Row="5" HorizontalAlignment="Left" Margin="243,2,0,0" VerticalAlignment="Top" AllowEmpty="False" Width="45" |
| 190 | + Number="{Binding MinimumTitleLengthSeconds, Mode=TwoWay}" Minimum="0" /> |
166 | 191 | </Grid> |
167 | 192 | </TabItem> |
168 | 193 | </TabControl> |
|
0 commit comments