From bf8190e86420f359917543c8ccaee5994fc5c9c2 Mon Sep 17 00:00:00 2001 From: muqing <1966944300@qq.com> Date: Thu, 16 Jan 2025 19:42:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20UI=20=E5=8F=8A=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 `Thickness.xaml` 中,删除多余破折号并调整 `SettingsPageHyperlinkButtonMargin` 的值。 在 `ModulePage.xaml` 中,为 `RwmodItem` 的 `Grid` 添加 `ContextFlyout`,调整高度并删除 `themes:ButtonIcon` 按钮。 删除 `CommandBarFlyout` 及其包含的所有 `AppBarButton` 元素。 在 `ModulePage.xaml.cs` 中,删除 `Button_Click` 方法及其相关逻辑。 --- Styles/Thickness.xaml | 8 +++----- Views/ModulePage.xaml | 32 +++++++++++--------------------- Views/ModulePage.xaml.cs | 22 ---------------------- 3 files changed, 14 insertions(+), 48 deletions(-) diff --git a/Styles/Thickness.xaml b/Styles/Thickness.xaml index 96ef0c9..f960830 100644 --- a/Styles/Thickness.xaml +++ b/Styles/Thickness.xaml @@ -1,6 +1,4 @@ - + 0,36,0,0 0,36,0,36 @@ -31,6 +29,6 @@ 36,24,36,0 - -12,4,0,0 - + 0,4,0,0 + diff --git a/Views/ModulePage.xaml b/Views/ModulePage.xaml index 1a27fc4..b7817b1 100644 --- a/Views/ModulePage.xaml +++ b/Views/ModulePage.xaml @@ -14,9 +14,18 @@ + + + + + + + + + - - - - - - - - diff --git a/Views/ModulePage.xaml.cs b/Views/ModulePage.xaml.cs index 87215a3..2681034 100644 --- a/Views/ModulePage.xaml.cs +++ b/Views/ModulePage.xaml.cs @@ -87,28 +87,6 @@ public sealed partial class ModulePage : Page } - /// - /// 打开模组 - /// - /// - /// - private void Button_Click(object sender, RoutedEventArgs e) - { - var button = sender as Button; - if (button != null) - { - var container = VisualTreeHelper.GetParent(button) as FrameworkElement; - if (container != null && container.DataContext is DataObject dataItem) - { - - FlyoutShowOptions myOption = new FlyoutShowOptions(); - myOption.ShowMode = FlyoutShowMode.Standard; - CommandBarFlyout1.ShowAt(button, myOption); - } - } - } - - /// /// 删除模组和文件夹 ///