| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 05 4d 00 00 02 b7 08 02 00 00 00 3e aa f9 | .PNG........IHDR...M.........>.. |
| 0020 | f3 00 00 00 09 70 48 59 73 00 00 0b 13 00 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 e2 | .....pHYs.................tIME.. |
| 0040 | 02 1a 0d 35 38 50 d7 1d c9 00 00 20 00 49 44 41 54 78 da ec 7d 79 74 5b e5 99 fe d5 be ef 91 65 | ...58P.......IDATx..}yt[.......e |
| 0060 | 59 96 77 3b de e2 d8 ce 42 96 86 3d d0 34 a5 0d 9c 76 da 4c 87 02 a7 74 a1 d3 69 4b 29 4c 87 d3 | Y.w;....B..=.4...v.L...t..iK)L.. |
| 0080 | f9 b5 9c 72 5a da 29 43 4b a7 9c a1 0c a5 74 18 da 02 a5 14 0a 81 a6 40 58 02 59 ed d8 89 d7 78 | ...rZ.)CK.....t........@X.Y....x |
| 00a0 | 97 64 59 96 b5 ef 57 db ef 8f e7 e4 3b aa 2c b9 31 50 48 e0 7d fe d0 51 1c 59 be ba ba f7 fb de | .dY...W.....;.,.1PH.}..Q.Y...... |
| 00c0 | e7 7d 9f f7 79 05 f9 7c 9e 23 10 08 04 02 81 40 20 10 08 04 02 81 f0 be 80 90 4e 01 81 40 20 10 | .}..y..|.#.....@..........N..@.. |
| 00e0 | 08 04 02 81 40 20 10 08 c4 f3 09 04 02 81 40 20 10 08 04 02 81 40 20 10 cf 27 10 08 04 02 81 40 | ....@.........@......@...'.....@ |
| 0100 | 20 10 08 04 02 81 40 3c 9f 40 20 10 08 04 02 81 40 20 10 08 04 02 f1 7c 02 81 40 20 10 08 04 02 | ......@<.@......@......|..@..... |
| 0120 | 81 40 20 10 88 e7 13 08 04 02 81 40 20 10 08 04 02 81 40 20 9e 4f 20 10 08 04 02 81 40 20 10 08 | .@.........@......@..O......@... |
| 0140 | 04 02 81 78 3e 81 40 20 10 08 04 02 81 40 20 10 08 04 e2 f9 04 02 81 40 20 10 08 04 02 81 40 20 | ...x>.@......@.........@......@. |
| 0160 | 10 88 e7 13 08 04 02 81 40 20 10 08 04 02 81 40 3c 9f 40 20 10 08 04 02 81 40 20 10 08 04 02 f1 | ........@......@<.@......@...... |
| 0180 | 7c 02 81 40 20 10 08 04 02 81 40 20 10 08 c4 f3 09 04 02 81 40 20 10 08 04 02 81 40 20 10 cf 27 | |..@......@.........@......@...' |
| 01a0 | 10 08 04 02 81 40 20 10 08 04 02 81 78 3e 81 70 1e 22 9f cf e3 11 4f 08 67 73 c6 e8 74 11 08 04 | .....@......x>.p."....O.gs..t... |
| 01c0 | 02 81 40 20 10 08 ef 63 88 e9 14 10 ce 5f 7a cf 71 5c 2e 97 13 0a 85 b9 5c 8e e3 38 a1 50 28 10 | ..@....c....._z.q\......\..8.P(. |
| 01e0 | 08 e8 e4 ac 7c de 70 ae 70 ba d8 cf e9 bc 11 08 04 02 81 40 20 10 08 ef 1b 50 3d 9f 70 1e 03 94 | ....|.p.p..........@.....P=.p... |
| 0200 | 95 11 57 f6 84 b0 f2 19 63 cf e9 8c 11 08 04 02 81 40 20 10 08 c4 f3 09 84 73 e9 f2 15 0a 0b 8b | ..W.....c........@.......s...... |
| 0220 | d2 85 cf 09 e5 ce 58 b9 b3 47 20 10 08 04 02 81 40 20 10 88 e7 13 08 04 02 81 40 20 10 08 04 02 | ......X..G......@.........@..... |
| 0240 | 81 40 38 b7 20 20 3b 2e c2 f9 8b e5 57 2f f5 99 d3 19 23 10 08 04 02 81 40 20 10 3e e0 a0 7a 3e | .@8...;.....W/....#.....@..>..z> |
| 0260 | e1 3c 06 71 54 02 81 40 20 10 08 04 02 81 40 28 26 4a 54 cf 27 10 08 04 02 81 40 20 10 08 04 02 | .<.qT..@......@(&JT.'.....@..... |
| 0280 | e1 7d 03 aa e7 13 08 04 02 81 40 20 10 08 04 02 81 40 3c 9f 40 78 b7 e0 f7 fb a1 3a 09 87 c3 a3 | .}........@......@<.@x.....:.... |
| 02a0 | a3 a3 78 42 a7 e5 9d 05 4e e9 c4 c4 44 3a 9d e6 38 2e 9f cf d3 49 26 10 08 84 73 19 a9 54 0a 4f | ..xB....N...D:..8....I&...s..T.O |
| 02c0 | e2 f1 38 ed 8c ef e1 d6 49 9b 26 81 40 38 37 41 ba 7d c2 79 80 6c 36 9b cb e5 c6 c6 c6 d6 af 5f | ..8.....I.&.@87A.}.y.l6........_ |
| 02e0 | 1f 08 04 38 8e cb 64 32 ec 7f 0b 87 c3 61 26 bc 50 28 a4 c7 e5 8f dc b2 d1 83 b9 5c 0e 4f c4 62 | ...8..d2.....a&.P(.........\.O.b |
| 0300 | 71 22 91 a8 aa aa 1a 19 19 a9 ad ad 15 8b c5 22 91 88 2e 3c 02 81 40 78 cf 81 f4 eb 72 48 24 92 | q"............."...<..@x....rH$. |
| 0320 | 74 3a 2d 16 8b 23 91 88 56 ab 65 af 94 48 24 74 d2 de 4d aa af 52 a9 b0 63 e6 f3 79 81 40 50 ee | t:-..#..V.e..H$t..M..R..c..y.@P. |
| 0340 | fb 2a 87 a2 ef 0b 61 79 2e 97 a3 5d 98 40 20 bc 4d 88 e9 14 10 ce 65 60 d7 4c 24 12 6a b5 5a a7 | .*....ay...].@..M.....e`.L$.j.Z. |
| 0360 | d3 e5 72 b9 47 1e 79 64 6a 6a 6a 05 07 3e fc 0a 3d 2e 7f 5c f9 3c db 6c b6 5c 2e a7 d3 e9 64 32 | ..r.G.ydjjj..>..=..\.<.l.\....d2 |
| 0380 | 59 34 1a 55 ab d5 a9 54 4a 26 93 d1 45 48 20 10 08 ef 21 56 e0 ed e9 74 5a 22 91 68 b5 5a 3c 49 | Y4.U...TJ&..EH....!V...tZ".h.Z<I |
| 03a0 | a7 d3 4a a5 92 ea 37 ef 0e 40 c5 71 f2 c1 c9 03 81 80 d1 68 7c 9b 79 16 81 40 80 da 06 f1 7c 02 | ..J...7..@.q.......h|.y..@....|. |
| 03c0 | 81 40 3c 9f f0 7e 06 d8 a9 5a ad e6 38 ee f8 f1 e3 72 b9 dc e1 70 88 44 a2 a2 ba 34 e1 ed c7 2b | .@<..~...Z..8....r...p.D...4...+ |
| 03e0 | 0e 87 43 2e 97 f7 f7 f7 7f f8 c3 1f c6 09 a7 93 4c 20 10 08 e7 32 20 6d 8b c7 e3 99 4c 26 95 4a | ..C.............L....2.m....L&.J |
| 0400 | 61 e9 a6 49 34 ef da c9 cf 64 32 32 99 2c 95 4a 49 24 92 78 3c 6e 34 1a df 91 77 16 89 44 44 f2 | a..I4....d22.,.JI$.x<n4...w..DD. |
| 0420 | 09 04 02 f1 7c c2 fb 1f f9 7c 3e 93 c9 48 24 12 bb dd 9e 4a a5 8c 46 63 26 93 89 46 a3 45 b9 80 | ....|....|>..H$....J..Fc&..F.E.. |
| 0440 | c2 d7 53 f5 fe 6f d6 f3 8b 0a 3e 7a bd 3e 9d 4e a7 52 a9 9a 9a 1a ee 4c 8d 88 c4 9f 04 02 81 f0 | ..S..o....>z.>.N.R.....L........ |
| 0460 | 9e 23 9b cd 96 63 83 90 eb 2b 95 4a 8e e3 fc 7e 3f c7 71 e3 e3 e3 cd cd cd 74 d2 de 05 c8 64 b2 | .#...c...+.J...~?.q......t....d. |
| 0480 | 70 38 2c 93 c9 d4 6a 75 36 9b 85 fc cd ed 76 57 54 54 ac 96 d5 d3 c9 24 10 08 c4 f3 09 1f 44 92 | p8,...ju6.....vWTT.....$......D. |
| 04a0 | 9f 48 24 c0 f3 6b 6b 6b 05 02 41 26 93 99 9f 9f 47 d5 02 58 5e 76 06 89 a5 c7 e5 8f 85 60 cd f9 | .H$..kkk..A&....G..X^v.......`.. |
| 04c0 | 1c c7 cd cf cf 1b 0c 06 81 40 50 5d 5d cd 71 5c 22 91 c0 0b 48 b7 4f 20 10 08 ef 2d ca f1 40 87 | .........@P]].q\"...H.O....-..@. |
| 04e0 | c3 51 59 59 29 14 0a 43 a1 10 ab 24 b7 b4 b4 d0 19 7b d7 e2 13 8d 46 93 cd 66 45 22 d1 d2 d2 92 | .QYY)..C...$.....{....F..fE".... |
| 0500 | c5 62 e1 38 ce 6a b5 be cd f7 e4 48 91 41 20 10 88 e7 13 3e 08 e0 79 1e 95 0a 8e e3 9e 7f fe 79 | .b.8.j.....H.A.....>..y........y |
| 0520 | a1 50 98 4e a7 db da da 1c 0e 47 c9 d7 d3 ee 78 36 31 c4 72 ac 5d bb 76 7e 7e 5e 28 14 3e ff fc | .P.N......G....x61.r.].v~~^(.>.. |
| 0540 | f3 ff f0 0f ff 80 1a 11 2a 15 74 d2 08 04 02 e1 5d 40 39 ff b6 72 2d 54 76 bb 1d 4f a4 52 29 c7 | ........*.t.....]@9..r-Tv..O.R). |
| 0560 | 71 46 a3 71 70 70 b0 ab ab 6b b5 3e 70 84 b7 06 48 de 62 b1 98 d3 e9 6c 6f 6f e7 38 2e 1a 8d ca | qF.qpp...k.>p...H.b....loo.8.... |
| 0580 | 64 b2 d5 b6 bc a5 52 29 91 48 24 95 4a 05 02 01 8b 61 fe a6 ab 0e 81 40 20 10 cf 27 9c df 00 cf | d.....R).H$.J....a.....@...'.... |
| 05a0 | 8c 46 a3 2a 95 aa bb bb 3b 9f cf ab 54 aa b1 b1 31 9d 4e 57 32 06 a2 96 f2 15 50 58 c0 2f fa e7 | .F.*....;...T...1.NW2.....PX./.. |
| 05c0 | d8 d8 58 45 45 45 3e 9f ef ed ed cd 66 b3 b1 58 4c ab d5 82 ed 13 08 04 02 e1 5d 80 d3 e9 2c f9 | ..XEEE>.....f..XL.........]...,. |
| 05e0 | f3 15 74 fb 91 48 44 a3 d1 c8 e5 f2 89 89 89 40 20 70 e5 95 57 96 7b 31 e1 1d 87 40 20 60 b3 6c | ..t..HD........@.p..W.{1...@.`.l |
| 0600 | 9e 7e fa 69 83 c1 d0 d6 d6 e6 f3 f9 56 9b 67 11 89 44 4a a5 52 a3 d1 b0 aa 06 47 45 0b 02 81 40 | .~.i........V.g..DJ.R.....GE...@ |
| 0620 | 3c 9f f0 be 07 86 06 a9 54 2a ee 8c e1 50 32 99 34 18 0c 85 <UserControl x:Class="Tango.MachineStudio.UI.Views.UpdateView"
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:vm="clr-namespace:Tango.MachineStudio.UI.ViewModels"
xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:mahApps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:local="clr-namespace:Tango.MachineStudio.UI.Views"
mc:Ignorable="d"
d:DesignHeight="1080" d:DesignWidth="1920" DataContext="{Binding UpdateViewVM, Source={StaticResource Locator}}" FontSize="20">
<UserControl.Resources>
<converters:VersionToShortVersionConverter x:Key="VersionToShortVersionConverter" />
</UserControl.Resources>
<Grid>
<!--<Grid.Background>
<ImageBrush ImageSource="/Images/White-Abstract.png" />
</Grid.Background>-->
<Grid MaxWidth="1200" MaxHeight="700">
<DockPanel>
<Grid DockPanel.Dock="Top" HorizontalAlignment="Center">
<!--<Grid.Effect>
<DropShadowEffect BlurRadius="200" ShadowDepth="0" Opacity="0.5" />
</Grid.Effect>-->
<StackPanel Orientation="Horizontal">
<Image Source="/Images/update.png" Width="100" />
<TextBlock Margin="20 0 0 0" VerticalAlignment="Center" FontSize="60" Foreground="#606060">Update Center</TextBlock>
</StackPanel>
</Grid>
<Grid DockPanel.Dock="Bottom">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button MinWidth="140" Height="40" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding BackCommand}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="KeyboardBackspace" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">BACK TO APPLICATION</TextBlock>
</StackPanel>
</Button>
</StackPanel>
<Canvas HorizontalAlignment="Left">
<StackPanel>
<StackPanel.Style>
<Style TargetType="StackPanel">
<Setter Property="Visibility" Value="Collapsed"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.UpdateAvailable}">
<Setter Property="Visibility" Value="Visible"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<TextBlock Foreground="Gray" FontSize="16">Release Notes</TextBlock>
<TextBlock FontSize="12" TextWrapping="Wrap" Foreground="{StaticResource GrayBrush290}" Margin="0 5 0 0" Text="{Binding UpdateComments}"></TextBlock>
</StackPanel>
</Canvas>
</Grid>
<Grid>
<Border Margin="0 10 0 10" BorderThickness="0 0 0 2" BorderBrush="DimGray">
<ContentControl>
<ContentControl.Style>
<Style TargetType="ContentControl">
<Setter Property="Content">
<Setter.Value>
<Grid>
</Grid>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.CheckingForUpdate}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel VerticalAlignment="Center">
<mahApps:ProgressRing Width="120" Height="120" Foreground="DimGray" />
<TextBlock HorizontalAlignment="Center" Margin="0 30 0 0">Checking for updates...</TextBlock>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.UpdateAvailable}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Image Source="/Images/new-version.png" Width="64"></Image>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<TextBlock VerticalAlignment="Center" Margin="0 20 0 0">
<Run>Version</Run>
<Run Text="{Binding LatestVersion,Converter={StaticResource VersionToShortVersionConverter},ConverterParameter='3'}" FontWeight="SemiBold" Foreground="{StaticResource AccentColorBrush}"></Run>
<Run>is available!</Run>
</TextBlock>
</StackPanel>
<TextBlock FontSize="12" TextAlignment="Center" Padding="20" Margin="0 0 0 40">
<Run>A new version of Machine Studio is available for download</Run>
<LineBreak/>
<Run>Click 'Update' to start the update process.</Run>
</TextBlock>
<Button MinWidth="140" Height="40" Margin="0 0 0 0" Width="200" Command="{Binding UpdateCommand}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="Download" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">UPDATE</TextBlock>
</StackPanel>
</Button>
<!--<Button Visibility="{Binding IsRollbackAvailable,Converter={StaticResource BoolToVisConverter}}" MinWidth="140" Height="40" Style="{StaticResource MaterialDesignFlatButton}" ToolTip="Restore Machine Studio to the previous version." Margin="0 40 0 0" Command="{Binding RollbackCommand}" Foreground="{StaticResource RedBrush100}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="BackupRestore" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">Restore previous version</TextBlock>
</StackPanel>
</Button>-->
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.Downloading}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center">
<Run>Downloading version</Run>
<Run Text="{Binding LatestVersion,FallbackValue='0.0.0.0'}"></Run>
<Run>, please wait...</Run>
</TextBlock>
<ProgressBar Height="10" Foreground="DimGray" Margin="0 20 0 0" Maximum="100" Value="{Binding DownloadProgress}"></ProgressBar>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.Updating}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center">
<Run>Updating Machine Studio, please wait...</Run>
</TextBlock>
<ProgressBar Height="10" Foreground="DimGray" Margin="0 20 0 0" Maximum="100" Value="{Binding UpdateProgress}"></ProgressBar>
<TextBlock TextTrimming="CharacterEllipsis" Text="{Binding CurrentUpdateFile}" FontSize="10" Margin="0 10 0 0" TextAlignment="Center" Foreground="DimGray"></TextBlock>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.UpdateCompleted}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<materialDesign:PackIcon Kind="Check" Width="100" Height="100" Foreground="#1CBB1C" HorizontalAlignment="Center" />
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" Margin="0 20 0 0">Your version of Machine Studio is up to date!</TextBlock>
</StackPanel>
<TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" FontSize="12">Please restart Machine Studio in order to apply the changes.</TextBlock>
<Button MinWidth="140" Height="40" Margin="0 50 0 0" Width="200" Command="{Binding RestartCommand}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="BackupRestore" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">RESTART</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.UpToDate}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<materialDesign:PackIcon Kind="Check" Width="100" Height="100" Foreground="#1CBB1C" HorizontalAlignment="Center" />
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" Margin="0 20 0 0">Your version of Machine Studio is up to date!</TextBlock>
</StackPanel>
<!--<Button Visibility="{Binding IsRollbackAvailable,Converter={StaticResource BoolToVisConverter}}" MinWidth="140" Height="40" Style="{StaticResource MaterialDesignFlatButton}" ToolTip="Restore Machine Studio to the previous version." Margin="0 40 0 0" Command="{Binding RollbackCommand}" Foreground="{StaticResource RedBrush100}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="BackupRestore" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">Restore previous version</TextBlock>
</StackPanel>
</Button>-->
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.Error}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<materialDesign:PackIcon Kind="Alert" Width="100" Height="100" Foreground="{StaticResource RedBrush100}" HorizontalAlignment="Center" />
<TextBlock VerticalAlignment="Center" Margin="0 20 0 0" HorizontalAlignment="Center">Error updating machine studio</TextBlock>
<TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" FontSize="12" TextAlignment="Center">
<Run>An error occurred while updating your software.</Run>
<LineBreak/>
<Run>press 'Try Again' to give it another try.</Run>
</TextBlock>
<Button MinWidth="140" Height="40" Margin="0 50 0 0" Width="200" Command="{Binding TryAgainCommand}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="BackupRestore" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">TRY AGAIN</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.RollingBack}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock HorizontalAlignment="Center">
<Run>Restoring previous version, please wait...</Run>
</TextBlock>
<ProgressBar Height="10" Foreground="DimGray" Margin="0 20 0 0" Maximum="100" Value="{Binding RollbackProgress}"></ProgressBar>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.RollbackError}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<materialDesign:PackIcon Kind="Alert" Width="100" Height="100" Foreground="{StaticResource RedBrush100}" HorizontalAlignment="Center" />
<TextBlock VerticalAlignment="Center" Margin="0 20 0 0" HorizontalAlignment="Center">Error restoring previous version</TextBlock>
<TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" FontSize="12" TextAlignment="Center">
<Run>An error occurred while restore the last version.</Run>
<LineBreak/>
<Run>press 'Try Again' to give it another try.</Run>
</TextBlock>
<Button MinWidth="140" Height="40" Margin="0 50 0 0" Width="200" Command="{Binding TryRollbackAgainCommand}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="BackupRestore" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">TRY AGAIN</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Status}" Value="{x:Static vm:UpdateStatus.RollbackCompleted}">
<Setter Property="Content">
<Setter.Value>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<materialDesign:PackIcon Kind="Check" Width="100" Height="100" Foreground="#1CBB1C" HorizontalAlignment="Center" />
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" Margin="0 20 0 0">Machine studio has been restored to the previous version!</TextBlock>
</StackPanel>
<TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" FontSize="12">Please restart Machine Studio in order to apply the changes.</TextBlock>
<Button MinWidth="140" Height="40" Margin="0 50 0 0" Width="200" Command="{Binding RestartCommand}">
<StackPanel Orientation="Horizontal">
<materialDesign:PackIcon Kind="BackupRestore" Width="24" Height="24" />
<TextBlock Margin="5 0 0 0" VerticalAlignment="Center">RESTART</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</ContentControl.Style>
</ContentControl>
</Border>
</Grid>
</DockPanel>
</Grid>
</Grid>
</UserControl>
|