更新客户端渲染,更新了壳
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
using Wpf.Ui.Appearance;
|
||||
using Wpf.Ui.Demo.Console.Utilities;
|
||||
|
||||
namespace Wpf.Ui.Demo.Console.Views.Pages;
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for SettingsPage.xaml
|
||||
/// </summary>
|
||||
public partial class SettingsPage
|
||||
{
|
||||
public SettingsPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
AppVersionTextBlock.Text = $"WPF UI - Simple Demo - {GetAssemblyVersion()}";
|
||||
|
||||
if (Appearance.ApplicationThemeManager.GetAppTheme() == ApplicationTheme.Dark)
|
||||
{
|
||||
DarkThemeRadioButton.IsChecked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LightThemeRadioButton.IsChecked = true;
|
||||
}
|
||||
|
||||
this.ApplyTheme();
|
||||
}
|
||||
|
||||
private void OnLightThemeRadioButtonChecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Appearance.ApplicationThemeManager.Apply(ApplicationTheme.Light);
|
||||
}
|
||||
|
||||
private void OnDarkThemeRadioButtonChecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Appearance.ApplicationThemeManager.Apply(ApplicationTheme.Dark);
|
||||
}
|
||||
|
||||
private string GetAssemblyVersion()
|
||||
{
|
||||
return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString()
|
||||
?? string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user