73 lines
2.3 KiB
C#
73 lines
2.3 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|
|
}
|