aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml
blob: ad8a5ca18a396d98905f76a4da66b6fe74d374d8 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<UserControl x:Class="Tango.PPC.UI.Views.BackupRestoreView"
             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:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:vm="clr-namespace:Tango.PPC.UI.ViewModels"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             xmlns:global="clr-namespace:Tango.PPC.UI"
             xmlns:local="clr-namespace:Tango.PPC.UI.Views"
             mc:Ignorable="d" 
             d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:BackupRestoreViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.BackupRestoreViewVM}">

    <UserControl.Resources>
        <Style TargetType="touch:TouchButton" x:Key="ButtonMenu">
            <Setter Property="Padding" Value="10"></Setter>
            <Setter Property="HorizontalContentAlignment" Value="Left"></Setter>
            <Setter Property="Height" Value="140"></Setter>
            <Setter Property="Background" Value="Transparent"></Setter>
            <Setter Property="BorderBrush" Value="{StaticResource TangoDarkForegroundBrush}"></Setter>
            <Setter Property="BorderThickness" Value="1"></Setter>
            <Setter Property="Foreground" Value="{StaticResource TangoDarkForegroundBrush}"></Setter>
            <Setter Property="EnableDropShadow" Value="False"></Setter>
            <Setter Property="CornerRadius" Value="5"></Setter>
            <Setter Property="Margin" Value="0 0 0 20"></Setter>
            <Setter Property="RippleBrush" Value="#4BB8B8B8"></Setter>
        </Style>
    </UserControl.Resources>

    <Grid Background="{StaticResource TangoPrimaryBackgroundBrush}">
        <DockPanel>
            <Grid DockPanel.Dock="Top">
                <StackPanel DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="0 20 0 0">
                    <Image Source="/Images/backup-restore.png" Stretch="Fill" Width="700" />
                </StackPanel>
            </Grid>

            <Grid DockPanel.Dock="Bottom" Margin="50 20">
                <touch:TouchButton Command="{Binding NavigateBackCommand}" HorizontalAlignment="Right" Height="60" Width="200" Style="{StaticResource TangoHollowButton}">
                    <StackPanel Orientation="Horizontal">
                        <touch:TouchIcon Margin="-30 0 30 0" Icon="ArrowLeft" />
                        <TextBlock>Back</TextBlock>
                    </StackPanel>
                </touch:TouchButton>
            </Grid>

            <controls:NavigationControl x:Name="navigationControl" TransitionType="Slide" KeepElementsAttached="True" Margin="0 20 0 0" SelectedIndex="0">

                <Grid controls:NavigationControl.NavigationName="MainView">
                    <StackPanel HorizontalAlignment="Left" Margin="50 20 50 0">
                        <TextBlock TextWrapping="Wrap" FontSize="{StaticResource TangoDefaultFontSize}">
                                <Run FontSize="{StaticResource TangoTitleFontSize}">Welcome to the backup/restore wizard</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>This wizard allows you to create a complete backup of your current machine state including software, firmware, data and user settings.</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>For creating a complete backup of your system please press 'Backup'.</Run>
                                <LineBreak/>
                                <Run>In case you want to restore your system to a previous state, please press 'Restore'.</Run>
                        </TextBlock>
                    </StackPanel>

                    <StackPanel VerticalAlignment="Center" Margin="50 150 50 0">
                        <touch:TouchButton Style="{StaticResource ButtonMenu}" Command="{Binding NavigateCommand}" CommandParameter="BackupView">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                                <Image Source="../Images/backup-big.png" Width="80" Height="80" />
                                <StackPanel Margin="10 0 0 0">
                                    <TextBlock FontSize="{StaticResource TangoButtonFontSize}">Backup</TextBlock>
                                    <TextBlock Foreground="{StaticResource TangoGrayTextBrush}" Width="470" TextWrapping="Wrap">
                                 Create a complete backup of your system state and save it to a storage device.
                                    </TextBlock>
                                </StackPanel>
                            </StackPanel>
                        </touch:TouchButton>

                        <touch:TouchButton Style="{StaticResource ButtonMenu}" Command="{Binding NavigateCommand}" CommandParameter="RestoreView">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                                <Image Source="../Images/restore.png" Width="80" Height="65" />
                                <StackPanel Margin="10 0 0 0">
                                    <TextBlock FontSize="{StaticResource TangoButtonFontSize}">Restore</TextBlock>
                                    <TextBlock Foreground="{StaticResource TangoGrayTextBrush}">
                                 Restore your system from a previously saved backup file.
                                    </TextBlock>
                                </StackPanel>
                            </StackPanel>
                        </touch:TouchButton>
                    </StackPanel>
                </Grid>

                <Grid controls:NavigationControl.NavigationName="BackupView">
                    <StackPanel HorizontalAlignment="Left" Margin="50 20 50 0">
                        <TextBlock TextWrapping="Wrap" FontSize="{StaticResource TangoDefaultFontSize}">
                                <Run FontSize="{StaticResource TangoTitleFontSize}">Backup your system</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>This wizard allows you to create a complete backup of your current machine state including software, firmware, data and user settings.</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>For creating a complete backup of your system please press 'Backup'.</Run>
                                <LineBreak/>
                                <Run>In case you want to restore your system to a previous state, please press 'Restore'.</Run>
                        </TextBlock>
                    </StackPanel>
                </Grid>

                <Grid controls:NavigationControl.NavigationName="RestoreView">
                    <StackPanel HorizontalAlignment="Left" Margin="50 20 50 0">
                        <TextBlock TextWrapping="Wrap" FontSize="{StaticResource TangoDefaultFontSize}">
                                <Run FontSize="{StaticResource TangoTitleFontSize}">Restore your system</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>This wizard allows you to create a complete backup of your current machine state including software, firmware, data and user settings.</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>For creating a complete backup of your system please press 'Backup'.</Run>
                                <LineBreak/>
                                <Run>In case you want to restore your system to a previous state, please press 'Restore'.</Run>
                        </TextBlock>
                    </StackPanel>
                </Grid>
            </controls:NavigationControl>
        </DockPanel>
    </Grid>
</UserControl>