mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
76 lines
3.0 KiB
XML
76 lines
3.0 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:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mdg="clr-namespace:Neo.Markdig.Xaml;assembly=Neo.Markdig.Xaml"
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:vm="clr-namespace:MaaWpfGui"
|
|
xmlns:viewModels="clr-namespace:MaaWpfGui.ViewModels"
|
|
xmlns:ui="clr-namespace:MaaWpfGui.ViewModels.UI"
|
|
xmlns:styles="clr-namespace:MaaWpfGui.Styles"
|
|
xmlns:controls="clr-namespace:MaaWpfGui.Styles.Controls"
|
|
Title="{DynamicResource VersionUpdated}"
|
|
Width="600"
|
|
Height="500"
|
|
d:DataContext="{d:DesignInstance {x:Type ui:VersionUpdateViewModel}}"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<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,5"
|
|
FontSize="20"
|
|
Style="{StaticResource TextBlockDefaultBold}"
|
|
Text="{DynamicResource VersionUpdatedTo}"
|
|
TextWrapping="Wrap" VerticalAlignment="Bottom" />
|
|
<controls:TextBlock
|
|
Margin="0,10,0,5"
|
|
FontSize="20"
|
|
Style="{StaticResource TextBlockDefaultBold}"
|
|
Text="{Binding UpdateTag}"
|
|
TextWrapping="Wrap" VerticalAlignment="Bottom" />
|
|
</StackPanel>
|
|
|
|
<FlowDocumentScrollViewer
|
|
x:Name="UpdateInfoMarkdownDocument"
|
|
Language="zh-cn"
|
|
Document="{Binding UpdateInfoDoc}"
|
|
Grid.Row="1"
|
|
Margin="16,0"
|
|
Zoom="90"
|
|
IsSelectionEnabled="False">
|
|
|
|
<FlowDocumentScrollViewer.Template>
|
|
<ControlTemplate TargetType="FlowDocumentScrollViewer">
|
|
<Border
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
Focusable="False">
|
|
|
|
<hc:ScrollViewer
|
|
x:Name="PART_ContentHost"
|
|
IsInertiaEnabled="True"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</FlowDocumentScrollViewer.Template>
|
|
|
|
<FlowDocumentScrollViewer.CommandBindings>
|
|
<CommandBinding
|
|
Command="{x:Static mdg:MarkdownXaml.Hyperlink}"
|
|
Executed="{s:Action OpenHyperlink}" />
|
|
</FlowDocumentScrollViewer.CommandBindings>
|
|
</FlowDocumentScrollViewer>
|
|
</Grid>
|
|
</hc:Window>
|