2025-04-24 20:56:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-05-05 17:04:06 +08:00
|
|
|
|
using WPFluent.Appearance;
|
|
|
|
|
|
|
2025-04-24 20:56:44 +08:00
|
|
|
|
using BasicInputViewModel = WPFluent.Gallery.ViewModels.Pages.BasicInputViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WPFluent.Gallery.Views.Pages;
|
|
|
|
|
|
|
2025-05-05 17:04:06 +08:00
|
|
|
|
public partial class BasicInputPage
|
2025-04-24 20:56:44 +08:00
|
|
|
|
{
|
|
|
|
|
|
public BasicInputViewModel ViewModel { get; }
|
|
|
|
|
|
|
2025-05-05 17:04:06 +08:00
|
|
|
|
public BasicInputPage()
|
2025-04-24 20:56:44 +08:00
|
|
|
|
{
|
2025-05-05 17:04:06 +08:00
|
|
|
|
ViewModel = new();
|
|
|
|
|
|
DataContext = ViewModel;
|
2025-04-24 20:56:44 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-05-05 17:04:06 +08:00
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
2025-04-24 20:56:44 +08:00
|
|
|
|
{
|
2025-05-05 17:04:06 +08:00
|
|
|
|
var theme = ThemeManager.GetAppTheme();
|
|
|
|
|
|
ThemeManager.ChangeAppTheme(theme
|
|
|
|
|
|
== ThemeType.Light ? ThemeType.Dark : ThemeType.Light);
|
|
|
|
|
|
var res = Application.Current.Resources;
|
2025-04-24 20:56:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|