<Page x:Class="XFEToolBox.Client.Installer.Views.Pages.InstallProgressPage"
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:viewmodel="clr-namespace:XFEToolBox.Client.Installer.ViewModel.Pages"
xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls;assembly=XFEToolBox.WpfCore"
mc:Ignorable="d" d:DesignHeight="380" d:DesignWidth="720"
d:DataContext="{d:DesignInstance Type=viewmodel:InstallProgressPageViewModel}"
Background="Transparent" Title="安装进度" Loaded="Page_Loaded">
<Grid Margin="34,26,34,30">
<Grid x:Name="installGrid" VerticalAlignment="Center">
<StackPanel>
<TextBlock Text="正在安装 XFEToolBox" Foreground="{DynamicResource ToolTextPrimaryBrush}"
FontSize="25" FontWeight="Bold" HorizontalAlignment="Center"/>
<TextBlock Text="正在验证并写入应用文件,请不要关闭安装程序。"
Foreground="{DynamicResource ToolTextSecondaryBrush}" Margin="0,8,0,24"
HorizontalAlignment="Center"/>
<controls:ModernProgressBar x:Name="progress" Height="12" Margin="55,0"
ProgressBarCornerRadius="6" IsBusy="True" Value="100"/>
</StackPanel>
</Grid>
<Grid x:Name="successGrid" Visibility="Collapsed" VerticalAlignment="Center">
<StackPanel>
<Border Width="58" Height="58" CornerRadius="29" Background="{DynamicResource ToolAccentSoftBrush}"
HorizontalAlignment="Center">
<TextBlock Text="✓" Foreground="{DynamicResource MainColor}" FontSize="31"
FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<TextBlock Text="安装完成" Foreground="{DynamicResource ToolTextPrimaryBrush}"
FontSize="27" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,14,0,0"/>
<TextBlock x:Name="successDetailText" Text="XFEToolBox 已准备就绪。"
Foreground="{DynamicResource ToolTextSecondaryBrush}" TextAlignment="Center"
TextWrapping="Wrap" Margin="30,7,30,22"/>
<Button Height="44" MinWidth="190" HorizontalAlignment="Center" Content="启动 XFEToolBox"
Command="{Binding ConfirmSuccessCommand}" controls:ButtonAssist.IsPrimary="True"/>
</StackPanel>
</Grid>
<Grid x:Name="errorGrid" Visibility="Collapsed" VerticalAlignment="Center">
<StackPanel>
<Border Width="58" Height="58" CornerRadius="29" Background="#16BC5966"
HorizontalAlignment="Center">
<TextBlock Text="!" Foreground="{DynamicResource ToolDangerBrush}" FontSize="32"
FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<TextBlock Text="安装未完成" Foreground="{DynamicResource ToolTextPrimaryBrush}"
FontSize="26" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,14,0,0"/>
<TextBlock x:Name="errorMessageText" Foreground="{DynamicResource ToolDangerBrush}"
TextAlignment="Center" TextWrapping="Wrap" MaxWidth="560" Margin="20,8,20,20"/>
<Button Height="42" MinWidth="140" HorizontalAlignment="Center" Content="重试安装"
Click="RetryButton_Click" controls:ButtonAssist.IsPrimary="True"/>
</StackPanel>
</Grid>
</Grid>
</Page>
<Page x:Class="XFEToolBox.Client.Installer.Views.Pages.InstallProgressPage"
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:viewmodel="clr-namespace:XFEToolBox.Client.Installer.ViewModel.Pages"
xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls;assembly=XFEToolBox.WpfCore"
mc:Ignorable="d" d:DesignHeight="380" d:DesignWidth="720"
d:DataContext="{d:DesignInstance Type=viewmodel:InstallProgressPageViewModel}"
Background="Transparent" Title="安装进度" Loaded="Page_Loaded">
<Grid Margin="34,26,34,30">
<Grid x:Name="installGrid" VerticalAlignment="Center">
<StackPanel>
<TextBlock Text="正在安装 XFEToolBox" Foreground="{DynamicResource ToolTextPrimaryBrush}"
FontSize="25" FontWeight="Bold" HorizontalAlignment="Center"/>
<TextBlock Text="正在验证并写入应用文件,请不要关闭安装程序。"
Foreground="{DynamicResource ToolTextSecondaryBrush}" Margin="0,8,0,24"
HorizontalAlignment="Center"/>
<controls:ModernProgressBar x:Name="progress" Height="12" Margin="55,0"
ProgressBarCornerRadius="6" IsBusy="True" Value="100"/>
</StackPanel>
</Grid>
<Grid x:Name="successGrid" Visibility="Collapsed" VerticalAlignment="Center">
<StackPanel>
<Border Width="58" Height="58" CornerRadius="29" Background="{DynamicResource ToolAccentSoftBrush}"
HorizontalAlignment="Center">
<TextBlock Text="✓" Foreground="{DynamicResource MainColor}" FontSize="31"
FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<TextBlock Text="安装完成" Foreground="{DynamicResource ToolTextPrimaryBrush}"
FontSize="27" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,14,0,0"/>
<TextBlock x:Name="successDetailText" Text="XFEToolBox 已准备就绪。"
Foreground="{DynamicResource ToolTextSecondaryBrush}" TextAlignment="Center"
TextWrapping="Wrap" Margin="30,7,30,22"/>
<Button Height="44" MinWidth="190" HorizontalAlignment="Center" Content="启动 XFEToolBox"
Command="{Binding ConfirmSuccessCommand}" controls:ButtonAssist.IsPrimary="True"/>
</StackPanel>
</Grid>
<Grid x:Name="errorGrid" Visibility="Collapsed" VerticalAlignment="Center">
<StackPanel>
<Border Width="58" Height="58" CornerRadius="29" Background="#16BC5966"
HorizontalAlignment="Center">
<TextBlock Text="!" Foreground="{DynamicResource ToolDangerBrush}" FontSize="32"
FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<TextBlock Text="安装未完成" Foreground="{DynamicResource ToolTextPrimaryBrush}"
FontSize="26" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,14,0,0"/>
<TextBlock x:Name="errorMessageText" Foreground="{DynamicResource ToolDangerBrush}"
TextAlignment="Center" TextWrapping="Wrap" MaxWidth="560" Margin="20,8,20,20"/>
<Button Height="42" MinWidth="140" HorizontalAlignment="Center" Content="重试安装"
Click="RetryButton_Click" controls:ButtonAssist.IsPrimary="True"/>
</StackPanel>
</Grid>
</Grid>
</Page>