Show / Hide Table of Contents

Class TagsControlViewModel

A class containing the logic for managing tags.

Inheritance
object
BindableBase
TagsControlViewModel
Implements
INotifyPropertyChanged
Inherited Members
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TagsControlViewModel : BindableBase, INotifyPropertyChanged

Constructors

View Source

TagsControlViewModel(Dispatcher)

Initializes a new instance of the TagsControlViewModel class.

Declaration
public TagsControlViewModel(Dispatcher dispatcher)
Parameters
Type Name Description
Dispatcher dispatcher

The dispatcher.

Properties

View Source

AddNewTagCommand

Gets the command to add a new tag view model.

Declaration
public ICommand AddNewTagCommand { get; }
Property Value
Type Description
ICommand
View Source

AutoCompleteTagsList

Gets the collection of tags to user for auto complete results.

Declaration
public ObservableCollection<string> AutoCompleteTagsList { get; }
Property Value
Type Description
ObservableCollection<string>
View Source

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
View Source

EventAggregator

Gets or sets the Prism.Events.IEventAggregator.

Declaration
public IEventAggregator EventAggregator { get; set; }
Property Value
Type Description
IEventAggregator
View Source

IsEditing

Gets a value indicating whether a tag is being edited.

Declaration
public bool IsEditing { get; }
Property Value
Type Description
bool
View Source

RemoveTagCommand

Gets the command to remove a tag.

Declaration
public DelegateCommand<TagItemViewModel> RemoveTagCommand { get; }
Property Value
Type Description
DelegateCommand<TagItemViewModel>
View Source

Tags

Gets a collection of tags for a bug.

Declaration
public ObservableCollection<TagItemViewModel> Tags { get; }
Property Value
Type Description
ObservableCollection<TagItemViewModel>

Methods

View Source

AddTagToAutoCompleteTagsList(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.

View Source

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.

View Source

ClearTags()

Clear the collection of tags.

Declaration
public void ClearTags()
View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

Implements

INotifyPropertyChanged
  • View Source
In this article
Back to top Generated by DocFX