mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
76 lines
3.6 KiB
XML
76 lines
3.6 KiB
XML
<ui:FluentWindow x:Class="BetterGenshinImpact.View.Windows.CheckUpdateWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:BetterGenshinImpact.View.Windows"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
|
xmlns:vio="http://schemas.lepo.co/wpfui/2022/xaml/violeta"
|
|
xmlns:webview="clr-namespace:BetterGenshinImpact.View.Controls.Webview"
|
|
x:Name="app"
|
|
Title="发现新版本"
|
|
Width="680"
|
|
Height="800"
|
|
Background="#202020"
|
|
ExtendsContentIntoTitleBar="True"
|
|
FontFamily="{DynamicResource TextThemeFontFamily}"
|
|
WindowBackdropType="None"
|
|
WindowStartupLocation="CenterOwner"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<ui:Grid Margin="0,48,0,0" RowDefinitions="Auto,*,Auto">
|
|
<webview:WebpagePanel x:Name="WebpagePanel"
|
|
Grid.Row="1"
|
|
Margin="12,0,12,0" />
|
|
<ui:Grid Grid.Row="0"
|
|
Margin="16,0,16,0"
|
|
ColumnDefinitions="Auto,*"
|
|
Visibility="{Binding ShowUpdateStatus, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
<vio:Loading Grid.Column="0" />
|
|
<ui:StackPanel Grid.Column="1" Margin="16,0,0,0">
|
|
<TextBlock Text="{Binding UpdateStatusMessage}" />
|
|
</ui:StackPanel>
|
|
</ui:Grid>
|
|
<ui:Grid Grid.Row="2"
|
|
Margin="8"
|
|
ColumnDefinitions="*,Auto,Auto,Auto,Auto">
|
|
<ui:Button Grid.Column="0"
|
|
MinWidth="90"
|
|
Margin="8,0,8,0"
|
|
Command="{Binding BackgroundUpdateCommand}"
|
|
Content="后台更新"
|
|
Visibility="Collapsed" />
|
|
<ui:Button Grid.Column="0"
|
|
MinWidth="90"
|
|
Margin="8,0,8,0"
|
|
Command="{Binding OtherUpdateCommand}"
|
|
Content="其他更新方式" />
|
|
<ui:Button Grid.Column="1"
|
|
MinWidth="90"
|
|
Margin="8,0,8,0"
|
|
Appearance="Success"
|
|
Command="{Binding UpdateCommand}"
|
|
Content="立即更新" />
|
|
<ui:Button Name="IgnoreButton"
|
|
Grid.Column="2"
|
|
MinWidth="90"
|
|
Margin="8,0,8,0"
|
|
Command="{Binding IgnoreCommand}"
|
|
Content="不再提示" />
|
|
<ui:Button Grid.Column="3"
|
|
MinWidth="90"
|
|
Margin="8,0,8,0"
|
|
Command="{Binding CancelCommand}"
|
|
Content="取消" />
|
|
</ui:Grid>
|
|
</ui:Grid>
|
|
<ui:TitleBar Title="{Binding Title, ElementName=app}"
|
|
ShowMaximize="False"
|
|
ShowMinimize="False">
|
|
<ui:TitleBar.Icon>
|
|
<ui:ImageIcon Source="pack://application:,,,/Assets/Images/logo.png" />
|
|
</ui:TitleBar.Icon>
|
|
</ui:TitleBar>
|
|
</Grid>
|
|
</ui:FluentWindow>
|