Gorgon
Show / Hide Table of Contents

Class HostedPanelViewModelBase<T>

A base view model for hosted panels within a ContentBaseControl.

Inheritance
object
PropertyMonitor
ViewModelBase<T, IHostContentServices>
HostedPanelViewModelBase<T>
Implements
IHostedPanelViewModel
IViewModel
INotifyPropertyChanged
INotifyPropertyChanging
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 HostedPanelViewModelBase<T> : ViewModelBase<T, IHostContentServices>, IHostedPanelViewModel, IViewModel, INotifyPropertyChanged, INotifyPropertyChanging where T : HostedPanelViewModelParameters
Type Parameters
Name Description
T

The type of view model parameters. Must inherit from HostedPanelViewModelParameters.

Remarks

This view model is used when an operation requires more information from the user. Content plug ins that have functions that have user defined parameters can use this to present those parameters within the same view as the content as pop up panel.

To use a hosted panel the plug in must define the panel by inheriting from this view model, and passing in parameters that inherit from HostedPanelViewModelParameters. A view must be registered with the ContentBaseControl.RegisterChildPanel(string, Control) method.

Constructors

| Edit this page View Source

HostedPanelViewModelBase()

Initializes a new instance of the HostedPanelViewModelBase<T> class.

Declaration
protected HostedPanelViewModelBase()

Properties

| Edit this page View Source

CancelCommand

Property to return the command used to cancel the operation.

Declaration
public IEditorCommand<object> CancelCommand { get; }
Property Value
Type Description
IEditorCommand<object>
| Edit this page View Source

IsActive

Property to set or return whether the panel is active or not.

Declaration
public bool IsActive { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

IsModal

Property to return whether the panel is modal.

Declaration
public abstract bool IsModal { get; }
Property Value
Type Description
bool
| Edit this page View Source

OkCommand

Property to set or return the command used to apply the operation.

Declaration
public IEditorCommand<object> OkCommand { get; set; }
Property Value
Type Description
IEditorCommand<object>

Methods

| Edit this page View Source

OnCancel()

Function to allow custom functionality when canceling the operation.

Declaration
protected virtual bool OnCancel()
Returns
Type Description
bool

true if the cancel operation was handled, or false if not.

Implements

IHostedPanelViewModel
IViewModel
INotifyPropertyChanged
INotifyPropertyChanging

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • 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