Gorgon
Show / Hide Table of Contents

Class SettingsCategoryBase<T>

A base class for a content settings category view model for a SettingsBaseControl.

Inheritance
object
PropertyMonitor
ViewModelBase<T, IHostContentServices>
SettingsCategoryBase<T>
PlugInsCategory<T>
Implements
ISettingsCategory
IViewModel
INotifyPropertyChanged
INotifyPropertyChanging
IGorgonNamedObject
Inherited Members
ViewModelBase<T, IHostContentServices>.WaitPanelActivated
ViewModelBase<T, IHostContentServices>.WaitPanelDeactivated
ViewModelBase<T, IHostContentServices>.ProgressUpdated
ViewModelBase<T, IHostContentServices>.ProgressDeactivated
ViewModelBase<T, IHostContentServices>.HostServices
ViewModelBase<T, IHostContentServices>.UpdateProgress(string, float, string, Action)
ViewModelBase<T, IHostContentServices>.UpdateProgress(ProgressPanelUpdateArgs)
ViewModelBase<T, IHostContentServices>.UpdateMarequeeProgress(string, string, Action)
ViewModelBase<T, IHostContentServices>.HideProgress()
ViewModelBase<T, IHostContentServices>.ShowWaitPanel(WaitPanelActivateArgs)
ViewModelBase<T, IHostContentServices>.ShowWaitPanel(string, string)
ViewModelBase<T, IHostContentServices>.HideWaitPanel()
ViewModelBase<T, IHostContentServices>.OnInitialize(T)
ViewModelBase<T, IHostContentServices>.OnLoad()
ViewModelBase<T, IHostContentServices>.OnUnload()
ViewModelBase<T, IHostContentServices>.Load()
ViewModelBase<T, IHostContentServices>.Unload()
ViewModelBase<T, IHostContentServices>.Initialize(T)
PropertyMonitor.PropertyChanged
PropertyMonitor.PropertyChanging
PropertyMonitor.UsePropertyNameValidation
PropertyMonitor.OnPropertyChanging(string)
PropertyMonitor.OnPropertyChanged(string)
PropertyMonitor.NotifyPropertyChanged(string)
PropertyMonitor.NotifyPropertyChanging(string)
PropertyMonitor.NotifyAllPropertiesChanging()
PropertyMonitor.NotifyAllPropertiesChanged()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Editor.UI
Assembly: Gorgon.Editor.API.dll
Syntax
public abstract class SettingsCategoryBase<T> : ViewModelBase<T, IHostContentServices>, ISettingsCategory, IViewModel, INotifyPropertyChanged, INotifyPropertyChanging, IGorgonNamedObject where T : SettingsCategoryViewModelParameters
Type Parameters
Name Description
T

The type of parameters for this view model. Must implement ISettingsCategory.

Remarks

This is a view model that is used provide a settings interface for a plug in. The editor will pick these up and present your custom settings view (along with the view model) so that users can make changes to plug in settings. These settings objects are returned to the host editor application by way of the OnGetSettings() method.

To register a settings panel, the developer must inherit this view model type, and create a settings view model for the plug in settings they wish to update. A view must be registered to the the view model by using the ViewFactory.Register<T>(Func<Control>) method.

Any parameters for this view model must inherit from the SettingsCategoryViewModelParameters class.

Properties

| Edit this page View Source

ID

Property to return the unqiue ID for the panel.

Declaration
public Guid ID { get; }
Property Value
Type Description
Guid
Remarks

This ID value is generated when the object is created, and does not need to be generated by the user.

See Also
EditorPlugIn
ViewFactory
SettingsCategoryViewModelParameters
| Edit this page View Source

Name

Property to return the name of this object.

Declaration
public abstract string Name { get; }
Property Value
Type Description
string
See Also
EditorPlugIn
ViewFactory
SettingsCategoryViewModelParameters

Implements

ISettingsCategory
IViewModel
INotifyPropertyChanged
INotifyPropertyChanging
IGorgonNamedObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)

See Also

EditorPlugIn
ViewFactory
SettingsCategoryViewModelParameters
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author