Class TokenSelectorViewModel
Represents the TokenSelector view model.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TokenSelectorViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceTokenSelectorViewModel(TokenResolverRegistry)
Initializes a new instance of the TokenSelectorViewModel class.
Declaration
public TokenSelectorViewModel(TokenResolverRegistry tokenResolverRegistry)
Parameters
Type | Name | Description |
---|---|---|
TokenResolverRegistry | tokenResolverRegistry | The token resolver registry |
Properties
View SourceFilterString
Gets or sets the filter string used to filter the tokens.
Declaration
public string FilterString { get; set; }
Property Value
Type | Description |
---|---|
string |
SelectTokenAction
Gets or sets the underlying interface that a token has been selected.
Declaration
public Action<TokenReference> SelectTokenAction { get; set; }
Property Value
Type | Description |
---|---|
Action<TokenReference> |
SelectedToken
Gets or sets the token that is selected from the list or the new token that is created.
Declaration
public TokenReferenceViewModel SelectedToken { get; set; }
Property Value
Type | Description |
---|---|
TokenReferenceViewModel |
TokenResolverRegistry
Gets the registry of resolvers.
Declaration
public TokenResolverRegistry TokenResolverRegistry { get; }
Property Value
Type | Description |
---|---|
TokenResolverRegistry |
Tokens
Gets the list of tokens.
Declaration
public List<TokenReferenceViewModel> Tokens { get; }
Property Value
Type | Description |
---|---|
List<TokenReferenceViewModel> |
Methods
View SourceFinalizeSelection()
Select the current token from the list box and closes the control.
Declaration
public bool FinalizeSelection()
Returns
Type | Description |
---|---|
bool | Whether the token was selected. |