月更
This commit is contained in:
38
NeuWPF/NeuWPFTest/MainWindow.xaml.cs
Normal file
38
NeuWPF/NeuWPFTest/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user