diff options
author | sr55 <[email protected]> | 2016-07-23 22:57:00 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-07-23 22:57:00 +0100 |
commit | f77bf9985eb96c08fd327c82cfba10bdee30297e (patch) | |
tree | 6e544f6c6d84a368c5479042ed0ce8fb8582bd14 /win/CS/HandBrakeWPF/Views | |
parent | 63f04ee378c199d993e5b01d16ca9b4008b4ef00 (diff) |
WinGui: Stubbing out some meta data code.
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MetaDataView.xaml | 76 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MetaDataView.xaml.cs | 28 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/Styles/Styles.xaml | 1 |
3 files changed, 105 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MetaDataView.xaml b/win/CS/HandBrakeWPF/Views/MetaDataView.xaml new file mode 100644 index 000000000..975305f82 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/MetaDataView.xaml @@ -0,0 +1,76 @@ +<UserControl x:Class="HandBrakeWPF.Views.MetaDataView" + 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:converters="clr-namespace:HandBrakeWPF.Converters" + xmlns:Properties="clr-namespace:HandBrakeWPF.Properties" + mc:Ignorable="d" + d:DesignHeight="300" d:DesignWidth="500"> + + <UserControl.Resources> + <converters:BooleanToVisibilityConverter x:Key="boolToVisConverter" /> + </UserControl.Resources> + + <Grid> + <Grid.RowDefinitions> + <RowDefinition Height="Auto" /> + <RowDefinition Height="Auto" /> + </Grid.RowDefinitions> + + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto" /> + </Grid.ColumnDefinitions> + + <TextBlock Text="{x:Static Properties:ResourcesUI.MetaDataView_Title}" FontWeight="Bold" Margin="10,5,0,0" Grid.Row="0" /> + + <!-- Metadata Input Area --> + <Grid Grid.Row="1" Margin="10,10,0,0"> + <Grid.RowDefinitions> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + <RowDefinition Height="Auto" MinHeight="25" /> + </Grid.RowDefinitions> + + <Grid.ColumnDefinitions> + <ColumnDefinition Width="Auto" MinWidth="100" /> + <ColumnDefinition Width="*" /> + </Grid.ColumnDefinitions> + + <TextBlock Text="Album Artist:" Grid.Row="0" /> + <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding MetaData.AlbumArtist, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Artist:" Grid.Row="1" Grid.Column="0" /> + <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding MetaData.Artist, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Comment:" Grid.Row="2" Grid.Column="0" /> + <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding MetaData.Comment, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Composer:" Grid.Row="3" Grid.Column="0" /> + <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding MetaData.Composer, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Description:" Grid.Row="4" Grid.Column="0" /> + <TextBox Grid.Row="4" Grid.Column="1" Text="{Binding MetaData.Description, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Genre:" Grid.Row="5" Grid.Column="0" /> + <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding MetaData.Genre, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Long Description:" Grid.Row="6" Grid.Column="0" /> + <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding MetaData.LongDescription, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Name:" Grid.Row="7" Grid.Column="0" /> + <TextBox Grid.Row="7" Grid.Column="1" Text="{Binding MetaData.Name, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + + <TextBlock Text="Release Date:" Grid.Row="8" Grid.Column="0" /> + <TextBox Grid.Row="8" Grid.Column="1" Text="{Binding MetaData.ReleaseDate, UpdateSourceTrigger=PropertyChanged}" Width="350" VerticalAlignment="Center" /> + </Grid> + + </Grid> + +</UserControl> diff --git a/win/CS/HandBrakeWPF/Views/MetaDataView.xaml.cs b/win/CS/HandBrakeWPF/Views/MetaDataView.xaml.cs new file mode 100644 index 000000000..467f6b8a8 --- /dev/null +++ b/win/CS/HandBrakeWPF/Views/MetaDataView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace HandBrakeWPF.Views +{ + /// <summary> + /// Interaction logic for MetaDataView.xaml + /// </summary> + public partial class MetaDataView : UserControl + { + public MetaDataView() + { + InitializeComponent(); + } + } +} diff --git a/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml b/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml index 3b4b0eeb9..66eb49078 100644 --- a/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml +++ b/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml @@ -16,6 +16,7 @@ <Style TargetType="{x:Type TextBox}">
<Setter Property="VerticalContentAlignment" Value="Center"/>
+ <Setter Property="MinHeight" Value="20"/>
</Style>
<Style TargetType="{x:Type Button}">
|