更新
This commit is contained in:
@@ -8,20 +8,9 @@ namespace WPFluent.Gallery.Views.Pages;
|
||||
|
||||
public partial class BasicInputPage
|
||||
{
|
||||
public BasicInputViewModel ViewModel { get; }
|
||||
|
||||
public BasicInputPage()
|
||||
{
|
||||
ViewModel = new();
|
||||
DataContext = ViewModel;
|
||||
DataContext = new BasicInputViewModel();
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var theme = ThemeManager.GetAppTheme();
|
||||
ThemeManager.ChangeAppTheme(theme
|
||||
== ThemeType.Light ? ThemeType.Dark : ThemeType.Light);
|
||||
var res = Application.Current.Resources;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user