Align add options checkboxes
This commit is contained in:
parent
62c700c8cd
commit
67db535abf
@ -9,55 +9,76 @@
|
|||||||
Background="{DynamicResource Ui.Brush.Surface}">
|
Background="{DynamicResource Ui.Brush.Surface}">
|
||||||
<Grid Margin="14">
|
<Grid Margin="14">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="16" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Grid Grid.Row="0"
|
<Grid Grid.Row="0">
|
||||||
VerticalAlignment="Top">
|
<Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<ColumnDefinition Width="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<ColumnDefinition Width="*" />
|
||||||
<RowDefinition Height="Auto" />
|
</Grid.ColumnDefinitions>
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<Grid Grid.Row="0"
|
<TextBlock Grid.Column="0"
|
||||||
Margin="0,0,0,12">
|
Text="Профиль"
|
||||||
<Grid.ColumnDefinitions>
|
Style="{StaticResource UiTextCaption}"
|
||||||
<ColumnDefinition Width="Auto" />
|
VerticalAlignment="Center"
|
||||||
<ColumnDefinition Width="*" />
|
Margin="0,0,12,0" />
|
||||||
</Grid.ColumnDefinitions>
|
<ComboBox Grid.Column="1"
|
||||||
|
Height="32"
|
||||||
<TextBlock Grid.Column="0"
|
Style="{StaticResource UiCombo}"
|
||||||
Text="Профиль"
|
ItemsSource="{Binding Profiles}"
|
||||||
Style="{StaticResource UiTextCaption}"
|
SelectedItem="{Binding SelectedProfile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
||||||
VerticalAlignment="Center"
|
<ComboBox.ItemTemplate>
|
||||||
Margin="0,0,12,0" />
|
<DataTemplate>
|
||||||
<ComboBox Grid.Column="1"
|
<TextBlock Text="{Binding Profile, Mode=OneWay}"
|
||||||
Style="{StaticResource UiCombo}"
|
TextTrimming="CharacterEllipsis" />
|
||||||
ItemsSource="{Binding Profiles}"
|
</DataTemplate>
|
||||||
SelectedItem="{Binding SelectedProfile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
</ComboBox.ItemTemplate>
|
||||||
<ComboBox.ItemTemplate>
|
</ComboBox>
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding Profile, Mode=OneWay}"
|
|
||||||
TextTrimming="CharacterEllipsis" />
|
|
||||||
</DataTemplate>
|
|
||||||
</ComboBox.ItemTemplate>
|
|
||||||
</ComboBox>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<StackPanel Grid.Row="1"
|
|
||||||
Orientation="Horizontal">
|
|
||||||
<CheckBox VerticalAlignment="Center"
|
|
||||||
Content="Отключать субтитры"
|
|
||||||
IsChecked="{Binding DisableSubtitleDefault, Mode=TwoWay}"
|
|
||||||
Margin="0,0,18,0" />
|
|
||||||
<CheckBox VerticalAlignment="Center"
|
|
||||||
Content="Удалять иностранные дорожки"
|
|
||||||
IsChecked="{Binding RemoveForeignAudioAndSubtitles, Mode=TwoWay}" />
|
|
||||||
</StackPanel>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,12,0,0">
|
<Grid Grid.Row="2"
|
||||||
|
Height="32"
|
||||||
|
VerticalAlignment="Top">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="18" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="24" />
|
||||||
|
<ColumnDefinition Width="18" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<CheckBox Grid.Column="0"
|
||||||
|
Width="18"
|
||||||
|
Height="18"
|
||||||
|
Margin="0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
IsChecked="{Binding DisableSubtitleDefault, Mode=TwoWay}" />
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="Отключать субтитры"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
FontSize="12" />
|
||||||
|
|
||||||
|
<CheckBox Grid.Column="3"
|
||||||
|
Width="18"
|
||||||
|
Height="18"
|
||||||
|
Margin="0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
IsChecked="{Binding RemoveForeignAudioAndSubtitles, Mode=TwoWay}" />
|
||||||
|
<TextBlock Grid.Column="4"
|
||||||
|
Text="Удалять иностранные дорожки"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
FontSize="12" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,12,0,0">
|
||||||
<Button MinWidth="100"
|
<Button MinWidth="100"
|
||||||
Margin="0,0,8,0"
|
Margin="0,0,8,0"
|
||||||
Style="{StaticResource UiButtonPrimary}"
|
Style="{StaticResource UiButtonPrimary}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user