rft: WpfGui重构 部分拆分设置-关于 (#11330)

This commit is contained in:
status102
2024-12-09 21:34:02 +08:00
committed by GitHub
parent 524d5fa2a0
commit ccca4afc53
3 changed files with 6 additions and 9 deletions

View File

@@ -108,7 +108,7 @@
DataContext="{Binding VersionUpdateSettings}" />
<hc:Divider Content="{Binding ListTitle[11]}" />
<userControl:AboutUserControl Margin="0,20" HorizontalAlignment="Center" />
<settingsViews:AboutUserControl Margin="0,20" HorizontalAlignment="Center" />
<!--<Rectangle HorizontalAlignment="Stretch" Fill="{DynamicResource BorderBrush}" Height="1" />-->
</StackPanel>
</hc:ScrollViewer>

View File

@@ -1,5 +1,5 @@
<UserControl
x:Class="MaaWpfGui.Views.UserControl.AboutUserControl"
x:Class="MaaWpfGui.Views.UserControl.Settings.AboutUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:constants="clr-namespace:MaaWpfGui.Constants"
@@ -7,13 +7,10 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dd="urn:gong-wpf-dragdrop"
xmlns:helper="clr-namespace:MaaWpfGui.Helper"
xmlns:local="clr-namespace:MaaWpfGui"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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"
d:Background="White"
d:DataContext="{d:DesignInstance {x:Type ui:SettingsViewModel}}"
d:DesignWidth="550"
mc:Ignorable="d">
@@ -113,10 +110,10 @@
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Hyperlink
Command="{s:Action SetAcknowledgedNightlyWarning}"
Cursor="Hand"
NavigateUri="{Binding Source={x:Static constants:MaaUrls.GitHubIssues}}"
TextDecorations="None"
Command="{s:Action SetAcknowledgedNightlyWarning}">
TextDecorations="None">
<TextBlock Text="{DynamicResource Issue}" />
</Hyperlink>
</controls:TextBlock>

View File

@@ -11,7 +11,7 @@
// but WITHOUT ANY WARRANTY
// </copyright>
namespace MaaWpfGui.Views.UserControl
namespace MaaWpfGui.Views.UserControl.Settings
{
/// <summary>
/// AboutUserControl.xaml 的交互逻辑