mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-11 11:46:37 +08:00
附加信息准备中
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -18,11 +19,19 @@ namespace AIStudio.Wpf.Mind.Controls
|
||||
/// <summary>
|
||||
/// TagControl.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TagControl : UserControl
|
||||
public class TagControl : Control
|
||||
{
|
||||
public TagControl()
|
||||
/// <summary>Identifies the <see cref="Tags"/> dependency property.</summary>
|
||||
public static readonly DependencyProperty TagsProperty
|
||||
= DependencyProperty.Register(nameof(Tags), typeof(ObservableCollection<string>), typeof(TagControl));
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the "popup" menu for this control is currently open
|
||||
/// </summary>
|
||||
public ObservableCollection<string> Tags
|
||||
{
|
||||
InitializeComponent();
|
||||
get => (ObservableCollection<string>)this.GetValue(TagsProperty);
|
||||
set => this.SetValue(TagsProperty, (ObservableCollection<string>)value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user