更新客户端渲染,更新了壳
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// 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.Demo.Console.Utilities;
|
||||
|
||||
namespace Wpf.Ui.Demo.Console.Views.Pages;
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for DashboardPage.xaml
|
||||
/// </summary>
|
||||
public partial class DashboardPage
|
||||
{
|
||||
private int _counter = 0;
|
||||
|
||||
public DashboardPage()
|
||||
{
|
||||
DataContext = this;
|
||||
InitializeComponent();
|
||||
|
||||
CounterTextBlock.SetCurrentValue(System.Windows.Controls.TextBlock.TextProperty, _counter.ToString());
|
||||
|
||||
this.ApplyTheme();
|
||||
}
|
||||
|
||||
private void OnBaseButtonClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
CounterTextBlock.SetCurrentValue(
|
||||
System.Windows.Controls.TextBlock.TextProperty,
|
||||
(++_counter).ToString()
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user