97 lines
3.4 KiB
XML
97 lines
3.4 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="Auto" />
|
|
<RowDefinition Height="16" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Column="0"
|
|
Text="Профиль"
|
|
Style="{StaticResource UiTextCaption}"
|
|
VerticalAlignment="Center"
|
|
Margin="0,0,12,0" />
|
|
<ComboBox Grid.Column="1"
|
|
Height="32"
|
|
Style="{StaticResource UiCombo}"
|
|
ItemsSource="{Binding Profiles}"
|
|
SelectedItem="{Binding SelectedProfile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Profile, Mode=OneWay}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</Grid>
|
|
|
|
<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"
|
|
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>
|