Class TemplateEditorViewModel
Implementation of IFieldsDataContext used to create a bug.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class TemplateEditorViewModel : FieldsViewModelBase, INotifyPropertyChanged, IFieldsViewModel, IAttachmentsViewModel, IDisposable
Constructors
View SourceTemplateEditorViewModel(Dispatcher)
Initializes a new instance of the TemplateEditorViewModel class.
Declaration
public TemplateEditorViewModel(Dispatcher dispatcher)
Parameters
| Type | Name | Description |
|---|---|---|
| Dispatcher | dispatcher | The dispatcher. |
Properties
View SourceCanEdit
Gets a value indicating whether object can be edited.
Declaration
public override bool CanEdit { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
View SourceCreateTokenSelector
Gets the function that creates a new Token Selector.
Declaration
public Func<ITokenSelector> CreateTokenSelector { get; }
Property Value
| Type | Description |
|---|---|
| Func<ITokenSelector> |
IsInDesignMode
Gets a value indicating whether the module is in design mode.
Declaration
public override bool IsInDesignMode { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
View SourceRevertCommand
Gets the Revert command.
Declaration
public DelegateCommand<string> RevertCommand { get; }
Property Value
| Type | Description |
|---|---|
| DelegateCommand<string> |
SaveCommand
Gets the save command.
Declaration
public DelegateCommand<string> SaveCommand { get; }
Property Value
| Type | Description |
|---|---|
| DelegateCommand<string> |
TokenSelectorFactory
Gets or sets the Token Selector factory.
Declaration
public ITokenSelectorFactory TokenSelectorFactory { get; set; }
Property Value
| Type | Description |
|---|---|
| ITokenSelectorFactory |
Methods
View SourceInitializeAsync()
Initialize the Template Editor View Model.
Declaration
public Task InitializeAsync()
Returns
| Type | Description |
|---|---|
| Task | A task. |
OnHasValidDataChanged()
Updates when the valid data changes.
Declaration
protected override void OnHasValidDataChanged()
Overrides
View SourceOnSharedInfoChanged(ViewModelSharedInfo, ViewModelSharedInfo)
Updates when the view model shared info changes.
Declaration
protected override void OnSharedInfoChanged(ViewModelSharedInfo oldValue, ViewModelSharedInfo newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewModelSharedInfo | oldValue | The old shared info. |
| ViewModelSharedInfo | newValue | The new shared info. |
Overrides
View SourceOnTemplatePropertyChanged(object, PropertyChangedEventArgs)
Updates when a template property changed.
Declaration
protected override void OnTemplatePropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sender | The event sender. |
| PropertyChangedEventArgs | e | The event arguments. |
Overrides
View SourceUninitialize()
Uninitialize the Template Editor View Model.
Declaration
public void Uninitialize()
UninitializeAsync()
Uninitialize the Template Editor View Model.
Declaration
public Task UninitializeAsync()
Returns
| Type | Description |
|---|---|
| Task | A task. |