37 lines
1017 B
C#
37 lines
1017 B
C#
using System.Windows;
|
|
using System.Windows.Media;
|
|
|
|
using WPFluent.Appearance;
|
|
|
|
|
|
namespace ShrlAlgo.Addin.Test;
|
|
/// <summary>
|
|
/// FluentWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class FluentWindow
|
|
{
|
|
public FluentWindow()
|
|
{
|
|
InitializeComponent();
|
|
//ApplicationThemeManager.Apply(this);
|
|
//ApplicationThemeManager.Changed -= ApplicationThemeManager_Changed;
|
|
//ApplicationThemeManager.Changed += ApplicationThemeManager_Changed;
|
|
}
|
|
private void ApplicationThemeManager_Changed(ApplicationTheme currentApplicationTheme, Color systemAccent)
|
|
{
|
|
//ApplicationThemeManager.Apply(this);
|
|
}
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
//if (ApplicationThemeManager.GetAppTheme() == ApplicationTheme.Light)
|
|
//{
|
|
// ApplicationThemeManager.Apply(ApplicationTheme.Dark);
|
|
//}
|
|
//else
|
|
//{
|
|
// ApplicationThemeManager.Apply(ApplicationTheme.Light);
|
|
//}
|
|
}
|
|
}
|