mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
chore: 更新日志支持惯性运动
This commit is contained in:
@@ -5,57 +5,62 @@
|
||||
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"
|
||||
Icon="../../newlogo.ico"
|
||||
Title="{DynamicResource VersionUpdated}"
|
||||
Width="600"
|
||||
Height="500"
|
||||
d:DataContext="{d:DesignInstance {x:Type ui:VersionUpdateViewModel}}"
|
||||
Icon="../../newlogo.ico"
|
||||
mc:Ignorable="d">
|
||||
<Grid Background="{DynamicResource VersionUpdateViewBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="20" />
|
||||
</Grid.RowDefinitions>
|
||||
<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>
|
||||
<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
|
||||
ClickAction="SafetyOpenBrowser"
|
||||
Grid.Row="1"
|
||||
Markdown="{Binding UpdateInfo}"
|
||||
Margin="10,10,10,0">
|
||||
<mdxam:MarkdownScrollViewer.MarkdownStyle>
|
||||
<StaticResource ResourceKey="MdXamlStyle"/>
|
||||
</mdxam:MarkdownScrollViewer.MarkdownStyle>
|
||||
<mdxam:MarkdownScrollViewer.Plugins>
|
||||
<StaticResource ResourceKey="MdXamlPlugin"/>
|
||||
</mdxam:MarkdownScrollViewer.Plugins>
|
||||
</mdxam:MarkdownScrollViewer>
|
||||
|
||||
</Grid>
|
||||
</hc:Window>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user