新设置
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Ink_Canvas.Windows.SettingsViews2.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// HomePage.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class HomePage : Page
|
||||
{
|
||||
public HomePage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void SettingsCard_Basic_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// 找到SettingsWindow2窗口
|
||||
SettingsWindow2 settingsWindow = Window.GetWindow(this) as SettingsWindow2;
|
||||
if (settingsWindow != null)
|
||||
{
|
||||
// 调用NavigateToPage方法导航到基本设置页面
|
||||
settingsWindow.NavigateToPage("BasicPage");
|
||||
}
|
||||
}
|
||||
|
||||
private void SettingsCard_Page2_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// 找到SettingsWindow2窗口
|
||||
SettingsWindow2 settingsWindow = Window.GetWindow(this) as SettingsWindow2;
|
||||
if (settingsWindow != null)
|
||||
{
|
||||
// 调用NavigateToPage方法导航到页面2
|
||||
settingsWindow.NavigateToPage("Page2Page");
|
||||
}
|
||||
}
|
||||
|
||||
private void SettingsCard_Design_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// 找到SettingsWindow2窗口
|
||||
SettingsWindow2 settingsWindow = Window.GetWindow(this) as SettingsWindow2;
|
||||
if (settingsWindow != null)
|
||||
{
|
||||
// 调用NavigateToPage方法导航到设计设置页面
|
||||
settingsWindow.NavigateToPage("DesignPage");
|
||||
}
|
||||
}
|
||||
|
||||
private void SettingsCard_Appearance_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// 找到SettingsWindow2窗口
|
||||
SettingsWindow2 settingsWindow = Window.GetWindow(this) as SettingsWindow2;
|
||||
if (settingsWindow != null)
|
||||
{
|
||||
// 调用NavigateToPage方法导航到外观设置页面
|
||||
settingsWindow.NavigateToPage("AppearancePage");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user