improve:计时器UI
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
|
||||
namespace Ink_Canvas.Windows.Controls
|
||||
{
|
||||
public class WinUI3CloseButton : ButtonBase
|
||||
{
|
||||
static WinUI3CloseButton()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(WinUI3CloseButton), new FrameworkPropertyMetadata(typeof(WinUI3CloseButton)));
|
||||
}
|
||||
|
||||
public bool IsActive
|
||||
{
|
||||
get => (bool)GetValue(IsActiveProperty);
|
||||
set => SetValue(IsActiveProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register(
|
||||
nameof(IsActive),
|
||||
typeof(bool),
|
||||
typeof(WinUI3CloseButton),
|
||||
new PropertyMetadata(true)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user