delete tagpanel
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user