aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.BackupRestore/Views/RestoreProgressView.xaml
blob: 65c1678c513b4c8fc21d777e4617b46a9cf1fa29 (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
<UserControl x:Class="Tango.PPC.BackupRestore.Views.RestoreProgressView"
             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="700" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:RestoreViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.RestoreViewVM}">

    <Grid Background="{StaticResource TangoPrimaryBackgroundBrush}">
        <DockPanel Margin="30 0 30 30">
            <Grid DockPanel.Dock="Top">
                <StackPanel>
                    <TextBlock TextWrapping="Wrap" FontSize="{StaticResource TangoDefaultFontSize}">
                                <Run FontSize="{StaticResource TangoTitleFontSize}">Restoring your system</Run>
                                <LineBreak/>
                                <LineBreak/>
                                <Run>This process may take several minutes, please wait.</Run>
                    </TextBlock>


                </StackPanel>
            </Grid>

            <Grid>
                <StackPanel VerticalAlignment="Center">
                    <TextBlock Text="{Binding CurrentRestoreProgress.Stage,Converter={StaticResource EnumToDescriptionConverter},FallbackValue='Restoring data'}" HorizontalAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}"></TextBlock>
                    <touch:TouchProgressBar Margin="0 20" Height="10" IsIndeterminate="{Binding CurrentRestoreProgress.IsIntermediate}" Maximum="{Binding CurrentRestoreProgress.MaxProgress}" Value="{Binding CurrentRestoreProgress.Progress,Mode=OneWay}" />
                </StackPanel>
            </Grid>
           
        </DockPanel>
    </Grid>
</UserControl>