修复TagIpoutBUG
修复TextBox值为Null无法删除问题以及AllowDuplicates为false状态 VM中的Tags为null时的异常状态问题
This commit is contained in:
@@ -12,7 +12,9 @@
|
||||
<u:TagInput
|
||||
Name="labels"
|
||||
Margin="20"
|
||||
Separator="-" />
|
||||
AllowDuplicates="False"
|
||||
Separator="-"
|
||||
Tags="{Binding Tags}" />
|
||||
<u:TagInput
|
||||
Margin="20"
|
||||
AllowDuplicates="False"
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Ursa.Demo.ViewModels;
|
||||
|
||||
public class TagInputDemoViewModel: ViewModelBase
|
||||
{
|
||||
|
||||
private ObservableCollection<string> _Tags ;
|
||||
public ObservableCollection<string> Tags
|
||||
{
|
||||
get { return _Tags; }
|
||||
set { SetProperty(ref _Tags, value); }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user