summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/AddPresetView.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Views/AddPresetView.xaml135
1 files changed, 97 insertions, 38 deletions
diff --git a/win/CS/HandBrakeWPF/Views/AddPresetView.xaml b/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
index 33229ca35..b6e186575 100644
--- a/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
+++ b/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
@@ -1,39 +1,54 @@
<Window x:Class="HandBrakeWPF.Views.AddPresetView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org"
- xmlns:Converters="clr-namespace:HandBrakeWPF.Converters" mc:Ignorable="d"
- Title="{Binding Title}"
- Width="350" SizeToContent="Height">
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:cal="http://www.caliburnproject.org"
+ xmlns:Converters="clr-namespace:HandBrakeWPF.Converters"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ Title="{Binding Title}"
+ Width="350"
+ ResizeMode="NoResize"
+ SizeToContent="Height"
+ WindowStartupLocation="CenterScreen"
+ mc:Ignorable="d">
<Window.Resources>
<Converters:BooleanToVisibilityConverter x:Key="boolToVisConverter" />
<Converters:EnumComboConverter x:Key="enumComboConverter" />
</Window.Resources>
- <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="#FFF1F0EF">
+ <Grid HorizontalAlignment="Stretch"
+ VerticalAlignment="Stretch"
+ Background="#FFF1F0EF">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
-
- <!-- Header -->
- <StackPanel Orientation="Horizontal" Grid.Row="0" Background="White" Height="30" Margin="0,0,0,10" >
- <Image Source="Images/Add16.png" Margin="10,0,5,0" Width="24" Height="24" VerticalAlignment="Center" />
- <StackPanel Orientation="Vertical" VerticalAlignment="Center">
- <TextBlock Text="Add a Preset" FontWeight="Bold" />
+
+ <!-- Header -->
+ <StackPanel Grid.Row="0"
+ Height="30"
+ Margin="0,0,0,10"
+ Background="White"
+ Orientation="Horizontal">
+ <Image Width="24"
+ Height="24"
+ Margin="10,0,5,0"
+ VerticalAlignment="Center"
+ Source="Images/Add16.png" />
+ <StackPanel VerticalAlignment="Center" Orientation="Vertical">
+ <TextBlock FontWeight="Bold" Text="Add a Preset" />
</StackPanel>
</StackPanel>
- <Grid Margin="10,0,10,0" Grid.Row="1">
+ <Grid Grid.Row="1" Margin="10,0,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
-
+
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
@@ -45,43 +60,87 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
- <!-- Name -->
- <TextBlock Text="Preset Name:" Grid.Row="0" Grid.Column="0" />
- <TextBox Width="150" Text="{Binding Preset.Name}" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left"/>
+ <!-- Name -->
+ <TextBlock Grid.Row="0"
+ Grid.Column="0"
+ Text="Preset Name:" />
+ <TextBox Grid.Row="0"
+ Grid.Column="1"
+ Width="150"
+ HorizontalAlignment="Left"
+ Text="{Binding Preset.Name}" />
+
+ <!-- Settings -->
+ <TextBlock Grid.Row="1"
+ Grid.Column="0"
+ Margin="0,20,0,0"
+ FontWeight="Bold"
+ Text="Picture Settings:" />
- <!-- Settings -->
- <TextBlock Text="Picture Settings:" FontWeight="Bold" Grid.Row="1" Grid.Column="0" Margin="0,20,0,0" />
+ <TextBlock Grid.Row="2"
+ Grid.Column="0"
+ Text="Use Picture Size:" />
+ <ComboBox Grid.Row="2"
+ Grid.Column="1"
+ Width="125"
+ HorizontalAlignment="Left"
+ ItemsSource="{Binding PictureSettingsModes,
+ Converter={StaticResource enumComboConverter}}"
+ SelectedItem="{Binding SelectedPictureSettingMode,
+ Converter={StaticResource enumComboConverter}}" />
- <TextBlock Text="Use Picture Size:" Grid.Row="2" Grid.Column="0" />
- <ComboBox Width="125" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left"
- ItemsSource="{Binding PictureSettingsModes, Converter={StaticResource enumComboConverter}}"
- SelectedItem="{Binding SelectedPictureSettingMode, Converter={StaticResource enumComboConverter}}"/>
-
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0" Visibility="{Binding ShowCustomInputs, Converter={StaticResource boolToVisConverter}}" Grid.Row="3" Grid.Column="1">
+ <StackPanel Grid.Row="3"
+ Grid.Column="1"
+ Margin="0,10,0,0"
+ Orientation="Horizontal"
+ Visibility="{Binding ShowCustomInputs,
+ Converter={StaticResource boolToVisConverter}}">
<TextBox Width="50" Text="{Binding CustomWidth}" />
- <TextBlock Text="X" FontWeight="Bold" Margin="10,0,10,0" />
+ <TextBlock Margin="10,0,10,0"
+ FontWeight="Bold"
+ Text="X" />
<TextBox Width="50" Text="{Binding CustomHeight}" />
</StackPanel>
- <CheckBox Content="Use Picture Filters" IsChecked="{Binding Preset.UsePictureFilters}" Margin="0,10,0,0" Grid.Row="4" Grid.Column="1"/>
+ <CheckBox Grid.Row="4"
+ Grid.Column="1"
+ Margin="0,10,0,0"
+ Content="Use Picture Filters"
+ IsChecked="{Binding Preset.UsePictureFilters}" />
- <!-- Description -->
- <TextBlock Text="Description:" FontWeight="Bold" Grid.Row="5" Grid.Column="0" />
- <TextBox Text="{Binding Preset.Description}" Grid.Row="6" Grid.ColumnSpan="2" HorizontalAlignment="Stretch"/>
+ <!-- Description -->
+ <TextBlock Grid.Row="5"
+ Grid.Column="0"
+ FontWeight="Bold"
+ Text="Description:" />
+ <TextBox Grid.Row="6"
+ Grid.ColumnSpan="2"
+ HorizontalAlignment="Stretch"
+ Text="{Binding Preset.Description}" />
</Grid>
- <!-- Controls -->
- <Grid Background="LightGray" Grid.Row="3" Margin="0,20,0,0">
+ <!-- Controls -->
+ <Grid Grid.Row="3"
+ Margin="0,20,0,0"
+ Background="LightGray">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
- <Button Content="Cancel" Padding="8,2" Margin="0,5,10,5" Grid.Column="1"
- IsCancel="True" cal:Message.Attach="[Event Click] = [Action Cancel]" />
- <Button Content="Add" Padding="8,2" Margin="0,5,10,5" Grid.Column="2"
- IsDefault="True" cal:Message.Attach="[Event Click] = [Action Add]" />
+ <Button Grid.Column="1"
+ Margin="0,5,10,5"
+ cal:Message.Attach="[Event Click] = [Action Cancel]"
+ Content="Cancel"
+ IsCancel="True"
+ Padding="8,2" />
+ <Button Grid.Column="2"
+ Margin="0,5,10,5"
+ cal:Message.Attach="[Event Click] = [Action Add]"
+ Content="Add"
+ IsDefault="True"
+ Padding="8,2" />
</Grid>
</Grid>