delete tagpanel

This commit is contained in:
NaBian committed 2020-11-19 23:40:47 +08:00
1 parent 74a734f54d
commit 4f9b77d567
6 files changed
+71 -21

No files matched your search

@@ -0,0 +1,22 @@
using System.Windows;
using System.Windows.Controls;
using HandyControl.Data;
namespace HandyControl.Controls
{
public class TagContainer : ItemsControl
{
public static readonly DependencyProperty IsToolBarVisibleProperty = DependencyProperty.Register(
"IsToolBarVisible", typeof(bool), typeof(TagContainer), new PropertyMetadata(ValueBoxes.FalseBox));
public bool IsToolBarVisible
{
get => (bool) GetValue(IsToolBarVisibleProperty);
set => SetValue(IsToolBarVisibleProperty, value);
}
protected override DependencyObject GetContainerForItemOverride() => new Tag();
protected override bool IsItemItsOwnContainerOverride(object item) => item is Tag;
}
}