功能更新
This commit is contained in:
17
Melskin/Controls/CheckableTag.xaml.cs
Normal file
17
Melskin/Controls/CheckableTag.xaml.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Windows.Controls.Primitives;
|
||||
|
||||
namespace Melskin.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// CheckableTag works like Checkbox, click it to toggle checked.
|
||||
/// </summary>
|
||||
public class CheckableTag : ToggleButton
|
||||
{
|
||||
static CheckableTag()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(
|
||||
typeof(CheckableTag),
|
||||
new FrameworkPropertyMetadata(typeof(CheckableTag)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user