summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/TitleSpecificView.xaml
blob: 57323617085136533cfca9e5b681ba224a08effe (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<Window x:Class="HandBrakeWPF.Views.TitleSpecificView"
        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:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:NumericUpDown="clr-namespace:EagleBoost.Wpf.Presentation.Controls.NumericUpDown;assembly=EagleBoost.Wpf.Presentation"
        Title="Scan Title"
        Width="250"
        Background="#FFF1F0EF"
        ResizeMode="NoResize"
        SizeToContent="Height"
        WindowStartupLocation="CenterScreen"
        mc:Ignorable="d">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <!--  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/Movies.png" />
            <StackPanel VerticalAlignment="Center" Orientation="Vertical">
                <TextBlock FontWeight="Bold" Text="Title Specific Scan" />
            </StackPanel>
        </StackPanel>

        <StackPanel Grid.Row="1"
                    Margin="10,10,0,10"
                    Orientation="Horizontal">
            <TextBlock Text="Choose a title to scan:" />
            <NumericUpDown:NumericUpDown Width="60"
                                         Margin="10,0,0,0"
                                         Maximum="1000"
                                         Minimum="0"
                                         Value="{Binding SelectedTitle,
                                                         Mode=TwoWay}" />
        </StackPanel>

        <StackPanel Grid.Row="2"
                    Margin="0,0,0,10"
                    HorizontalAlignment="Right"
                    Orientation="Horizontal">
            <Button Name="Cancel"
                    Margin="0,0,10,0"
                    cal:Message.Attach="[Event Click] = [Action Cancel]"
                    Content="Cancel"
                    IsCancel="True"
                    Padding="8,1" />
            <Button Name="OpenTitle"
                    Margin="0,0,10,0"
                    cal:Message.Attach="[Event Click] = [Action Open]"
                    Content="Open Title"
                    IsDefault="True"
                    Padding="8,1" />
        </StackPanel>

    </Grid>
</Window>