Files
ShrlAlgoToolkit/NeuWPF/NeuWPFTest/MainWindow.xaml.cs
2025-07-31 20:12:24 +08:00

39 lines
961 B
C#

using System.Windows;
using System.Windows.Controls;
using NeuWPF.Appearance;
namespace NeuWPFTest
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if(!_loaded ) return;
TextMessage.Text = "选项变化" + e.OriginalSource;
}
private bool _loaded = false;
private void Window_Loaded(object sender, RoutedEventArgs e)
{
_loaded = true;
}
private void Switch_OnClick(object sender, RoutedEventArgs e)
{
ThemeManager.SwitchThemeMode();
}
private void Test_OnClick(object sender, RoutedEventArgs e)
{
new ControlTestWindow().Show();
}
}
}