mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
67 lines
2.9 KiB
XML
67 lines
2.9 KiB
XML
<hc:Window
|
|
x:Class="MaaWpfGui.Views.UI.VersionUpdateView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:MaaWpfGui.Styles.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:helper="clr-namespace:MaaWpfGui.Helper"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml"
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
xmlns:styles="clr-namespace:MaaWpfGui.Styles"
|
|
xmlns:ui="clr-namespace:MaaWpfGui.ViewModels.UI"
|
|
xmlns:viewModels="clr-namespace:MaaWpfGui.ViewModels"
|
|
xmlns:vm="clr-namespace:MaaWpfGui"
|
|
Title="{DynamicResource VersionUpdated}"
|
|
Width="600"
|
|
Height="500"
|
|
d:DataContext="{d:DesignInstance {x:Type ui:VersionUpdateViewModel}}"
|
|
Icon="../../newlogo.ico"
|
|
mc:Ignorable="d">
|
|
<hc:ScrollViewer IsInertiaEnabled="True">
|
|
<Grid Background="{DynamicResource VersionUpdateViewBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="20" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<controls:TextBlock
|
|
Margin="0,10,0,10"
|
|
VerticalAlignment="Bottom"
|
|
FontSize="20"
|
|
Style="{StaticResource TextBlockDefaultBold}"
|
|
Text="{DynamicResource VersionUpdatedTo}"
|
|
TextWrapping="Wrap" />
|
|
<controls:TextBlock
|
|
Margin="0,10,0,10"
|
|
VerticalAlignment="Bottom"
|
|
FontSize="20"
|
|
Style="{StaticResource TextBlockDefaultBold}"
|
|
Text="{Binding UpdateTag}"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
|
|
<mdxam:MarkdownScrollViewer
|
|
Grid.Row="1"
|
|
Margin="10,10,10,0"
|
|
ClickAction="SafetyOpenBrowser"
|
|
Markdown="{Binding UpdateInfo}"
|
|
PreviewMouseWheel="{s:Action HandlePreviewMouseWheel,
|
|
Target={x:Type helper:MouseWheelHelper}}">
|
|
<mdxam:MarkdownScrollViewer.MarkdownStyle>
|
|
<StaticResource ResourceKey="MdXamlStyle" />
|
|
</mdxam:MarkdownScrollViewer.MarkdownStyle>
|
|
<mdxam:MarkdownScrollViewer.Plugins>
|
|
<StaticResource ResourceKey="MdXamlPlugin" />
|
|
</mdxam:MarkdownScrollViewer.Plugins>
|
|
</mdxam:MarkdownScrollViewer>
|
|
</Grid>
|
|
</hc:ScrollViewer>
|
|
</hc:Window>
|