blob: cf64b5beae4dab78833fc9f9b1526cca97e777ec (
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
|
<UserControl x:Class="Tango.PPC.BackupRestore.Views.WelcomeView"
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.BackupRestore.ViewModels"
xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
xmlns:global="clr-namespace:Tango.PPC.BackupRestore"
xmlns:local="clr-namespace:Tango.PPC.BackupRestore.Views"
mc:Ignorable="d"
d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:WelcomeViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.WelcomeViewVM}">
<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 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 NavigateToBackupCommand}">
<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 NavigateToRestoreCommand}" 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>
</UserControl>
|