summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-03-04 16:27:56 +0000
committersr55 <[email protected]>2012-03-04 16:27:56 +0000
commit376eae49e2c14f4acdbd644908e162ac6a2c5c3e (patch)
tree1093c1625c7a1c4399b9d114eb7bbecba9c4b65c /win/CS/HandBrakeWPF/Views
parent24bbf1b361a7b9cb78208b43cfec59173757ae24 (diff)
WinGui: (WPF) Add basic Preview window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4495 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r--win/CS/HandBrakeWPF/Views/PreviewView.xaml40
1 files changed, 34 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Views/PreviewView.xaml b/win/CS/HandBrakeWPF/Views/PreviewView.xaml
index caf0aaca8..4a5399b69 100644
--- a/win/CS/HandBrakeWPF/Views/PreviewView.xaml
+++ b/win/CS/HandBrakeWPF/Views/PreviewView.xaml
@@ -2,11 +2,39 @@
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"
- mc:Ignorable="d"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org"
+ mc:Ignorable="d"
Title="{Binding Title}"
- Width="300" Height="300">
- <Grid Background="Beige">
-
- </Grid>
+ Width="380" Height="140">
+
+ <Window.Resources>
+ <Style TargetType="Button">
+ <Setter Property="Foreground" Value="DarkOrange" />
+ <Setter Property="FontWeight" Value="Bold" />
+ <Setter Property="Padding" Value="5,1" />
+ <Setter Property="FontSize" Value="11.5" />
+ <Setter Property="VerticalAlignment" Value="Center" />
+ </Style>
+ </Window.Resources>
+
+ <StackPanel Orientation="Vertical" Margin="10,10,0,0">
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="Start at Preview:" Margin="0,0,5,0" VerticalAlignment="Center" />
+ <ComboBox ItemsSource="{Binding StartPoints}" Width="60" SelectedItem="{Binding StartAt}" />
+
+ <TextBlock Text="Duration:" VerticalAlignment="Center" Margin="10,0,5,0" />
+ <ComboBox ItemsSource="{Binding AvailableDurations}" Width="60" SelectedItem="{Binding Duration}" />
+ </StackPanel>
+
+ <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
+ <ProgressBar Minimum="0" Maximum="100" Width="310" Height="22" Value="{Binding PercentageValue}" />
+ <TextBlock Text="{Binding Percentage}" Margin="5,0,0,0" />
+ </StackPanel>
+
+ <StackPanel Orientation="Horizontal" Margin="0,10,0,0" Width="360">
+ <CheckBox Content="Use system default player" IsChecked="{Binding UseSystemDefaultPlayer}" />
+ <Button Content="Play" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="10,0,0,0"
+ cal:Message.Attach="[Event Click] = [Action Play]" />
+ </StackPanel>
+ </StackPanel>
</Window>