附加信息准备中

This commit is contained in:
kwai
2023-03-13 19:44:30 +08:00
parent 414eb28867
commit 31872222bc
12 changed files with 146 additions and 73 deletions

View File

@@ -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);
}
}
}