88 lines
3.2 KiB
XML
88 lines
3.2 KiB
XML
<Window x:Class="EmbyToolbox.Views.AddFilesOptionsDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Параметры добавления"
|
|
Width="520"
|
|
Height="230"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterOwner"
|
|
Background="{DynamicResource Ui.Brush.Surface}">
|
|
<Grid Margin="14">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0"
|
|
VerticalAlignment="Top">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="0"
|
|
Text="Профиль"
|
|
Style="{StaticResource UiTextCaption}"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,12,12" />
|
|
<ComboBox Grid.Row="0"
|
|
Grid.Column="1"
|
|
Style="{StaticResource UiCombo}"
|
|
ItemsSource="{Binding Profiles}"
|
|
SelectedItem="{Binding SelectedProfile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="0,0,0,12">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Profile, Mode=OneWay}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<TextBlock Grid.Row="1"
|
|
Grid.Column="0"
|
|
Text="Отключать субтитры"
|
|
Style="{StaticResource UiTextCaption}"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,12,12" />
|
|
<CheckBox Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding DisableSubtitleDefault, Mode=TwoWay}"
|
|
Margin="0,0,0,12" />
|
|
|
|
<TextBlock Grid.Row="2"
|
|
Grid.Column="0"
|
|
Text="Удалять иностранные дорожки"
|
|
Style="{StaticResource UiTextCaption}"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,12,0" />
|
|
<CheckBox Grid.Row="2"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding RemoveForeignAudioAndSubtitles, Mode=TwoWay}" />
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,12,0,0">
|
|
<Button MinWidth="100"
|
|
Margin="0,0,8,0"
|
|
Style="{StaticResource UiButtonPrimary}"
|
|
Foreground="White"
|
|
Content="Добавить"
|
|
IsDefault="True"
|
|
Command="{Binding AddCommand}" />
|
|
<Button MinWidth="100"
|
|
Style="{StaticResource UiButtonSecondary}"
|
|
Content="Отмена"
|
|
IsCancel="True"
|
|
Command="{Binding CancelCommand}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|