Class TagItemViewModel
A class containing the logic for a tag item in the Tag Control.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TagItemViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceTagItemViewModel(Func<string, bool>)
Initializes a new instance of the TagItemViewModel class.
Declaration
public TagItemViewModel(Func<string, bool> validateTagIsUniqueFunc)
Parameters
Type | Name | Description |
---|---|---|
Func<string, bool> | validateTagIsUniqueFunc | A function for validating if a tag is unique. |
TagItemViewModel(string, Func<string, bool>)
Initializes a new instance of the TagItemViewModel class.
Declaration
public TagItemViewModel(string tagText, Func<string, bool> validateTagIsUniqueFunc)
Parameters
Type | Name | Description |
---|---|---|
string | tagText | The text to set the tag to. |
Func<string, bool> | validateTagIsUniqueFunc | A function for validating if a tag is unique. |
Properties
View SourceApplyAutoCompleteTextCommand
Gets the command for applying the auto complete field to the tag.
Declaration
public ICommand ApplyAutoCompleteTextCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
IsEditing
Gets or sets a value indicating whether this tag is in editing mode.
Declaration
public bool IsEditing { get; set; }
Property Value
Type | Description |
---|---|
bool |
TagText
Gets the locked in text for this tag.
Declaration
public string TagText { get; }
Property Value
Type | Description |
---|---|
string |
UserText
Gets or sets the user edited text of the tag.
Declaration
public string UserText { get; set; }
Property Value
Type | Description |
---|---|
string |