Files
PrefacedCorg 4da78a04cb 代码清理
2025-10-06 18:29:12 +08:00

27 lines
762 B
C#

using System.Windows;
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)
);
}
}