summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/PreviewView.xaml
blob: 46050193041e70a6930971891cd8a3b2490678fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Window x:Class="HandBrakeWPF.Views.PreviewView"
             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"
        mc:Ignorable="d" 
             Title="{Binding Title}" 
             Width="380" SizeToContent="Height" Background="#FFF1F0EF">

    <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" >

        <StackPanel Orientation="Horizontal" Grid.Row="0"  Background="White" Height="30" Margin="0,0,0,10" >
            <Image Source="Images/window.png" Margin="10,0,5,0"  Width="24" Height="24" VerticalAlignment="Center" />
            <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                <TextBlock Text="Create a video preview" FontWeight="Bold" />
            </StackPanel>
        </StackPanel>
        
        <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
            <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="10,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="10,10,0,10" Width="360">
            <CheckBox Content="Use system default player" VerticalAlignment="Center" IsChecked="{Binding UseSystemDefaultPlayer}" />
            <Button Content="Play" HorizontalAlignment="Right" IsDefault="True" VerticalAlignment="Center" Padding="8,2" Margin="10,0,0,0"
                    cal:Message.Attach="[Event Click] = [Action Play]" />
        </StackPanel>
    </StackPanel>
</Window>