Class TagsControlViewModel
A class containing the logic for managing tags.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TagsControlViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceTagsControlViewModel(Dispatcher)
Initializes a new instance of the TagsControlViewModel class.
Declaration
public TagsControlViewModel(Dispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
Dispatcher | dispatcher | The dispatcher. |
Properties
View SourceAddNewTagCommand
Gets the command to add a new tag view model.
Declaration
public ICommand AddNewTagCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
AutoCompleteTagsList
Gets the collection of tags to user for auto complete results.
Declaration
public ObservableCollection<string> AutoCompleteTagsList { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<string> |
BugId
Gets the bug id associated with this tags control. In design mode it should be empty.
Declaration
public Guid BugId { get; }
Property Value
Type | Description |
---|---|
Guid |
EventAggregator
Gets or sets the Prism.Events.IEventAggregator.
Declaration
public IEventAggregator EventAggregator { get; set; }
Property Value
Type | Description |
---|---|
IEventAggregator |
IsEditing
Gets a value indicating whether a tag is being edited.
Declaration
public bool IsEditing { get; }
Property Value
Type | Description |
---|---|
bool |
RemoveTagCommand
Gets the command to remove a tag.
Declaration
public DelegateCommand<TagItemViewModel> RemoveTagCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<TagItemViewModel> |
Tags
Gets a collection of tags for a bug.
Declaration
public ObservableCollection<TagItemViewModel> Tags { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<TagItemViewModel> |
Methods
View SourceAddTagToAutoCompleteTagsList(string)
Adds a tag to the auto complete tags list if it isn't already in the list.
Declaration
public void AddTagToAutoCompleteTagsList(string tag)
Parameters
Type | Name | Description |
---|---|---|
string | tag | The tag to add. |
AddTags(List<string>)
Add a list of tags to the existing list of tags.
Declaration
public void AddTags(List<string> tags)
Parameters
Type | Name | Description |
---|---|---|
List<string> | tags | The tags to add. |
ClearTags()
Clear the collection of tags.
Declaration
public void ClearTags()
GetsTagsAsListOfStrings()
Converts the tags into a list of strings.
Declaration
public List<string> GetsTagsAsListOfStrings()
Returns
Type | Description |
---|---|
List<string> | The list of tags as strings. |
RaiseEditingStateChanged(string)
Raises the property changed on whether a tag is being edited.
Declaration
public void RaiseEditingStateChanged(string tagThatChanged = null)
Parameters
Type | Name | Description |
---|---|---|
string | tagThatChanged | Optional. The value of the tag that changed editing state. |
RemoveTagToAutoCompleteTagsList(string)
Removes a tag from the auto complete tags list.
Declaration
public void RemoveTagToAutoCompleteTagsList(string tag)
Parameters
Type | Name | Description |
---|---|---|
string | tag | The tag to remove. |
SetAutoCompleteTagsList(IEnumerable<string>)
Set the list to use for auto complete results when creating tags.
Declaration
public void SetAutoCompleteTagsList(IEnumerable<string> tags)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | tags | The list of tags. |
SetTags(List<string>)
Clears the current tags and adds the given tags.
Declaration
public void SetTags(List<string> tags)
Parameters
Type | Name | Description |
---|---|---|
List<string> | tags | The tags to add. |