summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/AboutView.xaml
blob: 7743dfc2d79862756f9a8e56cfd1a2bca4b1e563 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<Window x:Class="HandBrakeWPF.Views.AboutView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
        Title="{Binding Title}"
        Width="600"
        Height="320"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Image Grid.Column="0"
                   Width="64"
                   Height="64"
                   Margin="10,10,10,10"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   SnapsToDevicePixels="True"
                   Source="Images/logo64.png" />

            <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <StackPanel Grid.Row="0"
                            Margin="5,10,0,0"
                            Orientation="Horizontal">
                    <TextBlock Margin="0,0,5,0"
                               FontSize="14"
                               FontWeight="Bold"
                               Text="HandBrake" />
                    <TextBlock Margin="0,0,0,1"
                               VerticalAlignment="Bottom"
                               Text="{Binding Version}" />
                </StackPanel>

                <TextBlock Grid.Row="1"
                           Margin="5,0,0,0 "
                           Text="Copyright 2003-2012 HandBrake Team" />

                <TextBlock Grid.Row="2"
                           Margin="5,10,0,5"
                           Text="License:" />
                <TextBox Grid.Row="3"
                         Margin="10,0,10,10"
                         HorizontalAlignment="Stretch"
                         VerticalAlignment="Stretch"
                         IsReadOnly="True"
                         TextWrapping="Wrap"
                         VerticalScrollBarVisibility="Auto">
                    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
                    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
                    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                </TextBox>

            </Grid>
        </Grid>

        <StackPanel Grid.Row="1"
                    HorizontalAlignment="Stretch"
                    Background="LightGray">
            <Button Margin="0,5,10,5"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Center"
                    Content="Close"
                    IsDefault="True"
                    Micro:Message.Attach="[Event Click] = [Action Close]"
                    Padding="12,2" />
        </StackPanel>
    </Grid>
</Window>