Class TokenExplorerViewModel
View model for the "token explorer" view.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TokenExplorerViewModel : BindableBase, INotifyPropertyChanged, ITreeNodeDynastyProvider
Constructors
View SourceTokenExplorerViewModel(Dispatcher)
Initializes a new instance of the TokenExplorerViewModel class.
Declaration
public TokenExplorerViewModel(Dispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
Dispatcher | dispatcher | The dispatcher. |
Properties
View SourceCurrentPropertyVMs
Gets the current property view models
Declaration
public List<TokenDefinitionPropertyViewModel>? CurrentPropertyVMs { get; }
Property Value
Type | Description |
---|---|
List<TokenDefinitionPropertyViewModel> |
HasProperties
Gets a value indicating whether the VM has properties.
Declaration
public bool HasProperties { get; }
Property Value
Type | Description |
---|---|
bool |
HasUnsavedChanges
Gets a value indicating whether the token explorer has unsaved changes
Declaration
public bool HasUnsavedChanges { get; }
Property Value
Type | Description |
---|---|
bool |
ResolverVMs
Gets the collection of TokenResolverViewModels.
Declaration
public List<TokenResolverViewModel> ResolverVMs { get; }
Property Value
Type | Description |
---|---|
List<TokenResolverViewModel> |
RevertAllTokenDefinitionsCommand
Gets the revert all token definitions command.
Declaration
public ICommand RevertAllTokenDefinitionsCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
SaveAllTokenDefinitionsCommand
Gets the save all token definitions command.
Declaration
public ICommand SaveAllTokenDefinitionsCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
SelectedDefinitionVM
Gets the selected token definition.
Declaration
public TokenDefinitionViewModel? SelectedDefinitionVM { get; }
Property Value
Type | Description |
---|---|
TokenDefinitionViewModel |
SelectedResolverVM
Gets the selected token resolver
Declaration
public TokenResolverViewModel? SelectedResolverVM { get; }
Property Value
Type | Description |
---|---|
TokenResolverViewModel |
SelectedTreeNode
Gets or sets the selected tree node
Declaration
public BindableBase? SelectedTreeNode { get; set; }
Property Value
Type | Description |
---|---|
BindableBase |
SharedInfo
Gets or sets the view model shared info.
Declaration
public ViewModelSharedInfo? SharedInfo { get; set; }
Property Value
Type | Description |
---|---|
ViewModelSharedInfo |
TokenDynastyProvider
Gets the token dynasty provider
Declaration
public ITreeNodeDynastyProvider TokenDynastyProvider { get; }
Property Value
Type | Description |
---|---|
ITreeNodeDynastyProvider |
TokenResolverRegistry
Sets the TokenResolverRegistry
Declaration
public TokenResolverRegistry TokenResolverRegistry { set; }
Property Value
Type | Description |
---|---|
TokenResolverRegistry |
UpdateTokenDefinitionCommand
Gets the update token definition command.
Declaration
public DelegateCommand UpdateTokenDefinitionCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Methods
View SourceGetTreeNodeDynasty(object)
Returns the tree node dynasty for templates: a list of all template's parents plus the template itself. The root parent has index 0, the last item in the list is the template itself.
Declaration
public IList? GetTreeNodeDynasty(object node)
Parameters
Type | Name | Description |
---|---|---|
object | node | The template for which a dynasty is returned. |
Returns
Type | Description |
---|---|
IList | The dynasty for the specified template. |