EditorActivityViewModelBase Class
To create a tab or activity in your app editor, create a class derived from EditorActivityViewModelBase. This class lets you override the following methods and properties:
- Label: This sets the name of the tab that will appear at the top of the app editor.
- RegisterCommands: This registers a command for the tab.
- OnDeactivated: This is set when the tab is deactivated.
- OnActivated: This is set when the tab activated.
- OnInitialized: This is set when the tab is initialized.
EditorActivityViewModelBase has the following public methods that you can use to implement new app editor activity:
- SetDirty: Enables a user to save changes to the configuration in the editor.
- IsActive: In an editor with multiple tabs, this method indicates whether a tab is active or inactive.
- IsReadOnly: This method indicates if the editor was opened in read-only mode.
EditorActivityViewModelBase contains the following protected methods/properties that can used when implementing new app editor activity:
- CommandManager: Register and unregister commands.
- Editor: IEditor implemented by framework.
See Also