Click or drag to resize

ConditionalDocumentControllerWithDisabledViewTModel Class

Controller that shows two documents: one in the enabled state that can be changed, and one in the disabled state that cannot be changed.
Inheritance Hierarchy
SystemObject
  Altaxo.Gui.CommonConditionalDocumentControllerWithDisabledViewTModel

Namespace: Altaxo.Gui.Common
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class ConditionalDocumentControllerWithDisabledView<TModel> : IConditionalDocumentController, 
	INotifyPropertyChanged, IMVCANController, IMVCAController, IMVCController, IDisposable, 
	IApplyController

Type Parameters

TModel
The type of the model.

The ConditionalDocumentControllerWithDisabledViewTModel type exposes the following members.

Constructors
 NameDescription
Public methodConditionalDocumentControllerWithDisabledViewTModel(FuncTModel, FuncTModel) Initializes a new instance of the ConditionalDocumentControllerWithDisabledViewTModel class.
Public methodConditionalDocumentControllerWithDisabledViewTModel(FuncTModel, FuncTModel, FuncTModel, UseDocument, IMVCANController) Initializes a new instance of the ConditionalDocumentControllerWithDisabledViewTModel class.
Top
Properties
 NameDescription
Public propertyEnablingText Gets or sets the text used to enable the conditional view.
Public propertyIsConditionalViewEnabled Gets or sets a value indicating whether the enabled-state controller is active.
Public propertyModelObject Gets the model (document) that this controller manages.
Public propertyModelObjectOrNull Gets the model object for the enabled controller, or null if none exists.
Public propertyUnderlyingController Gets or sets the underlying controller that is currently active.
Public propertyUnderlyingView Gets the view object of the currently active underlying controller.
Public propertyUseDocumentCopy Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted. Use the last option if a controller higher in the hierarchy has already made a copy of the document.
Public propertyViewObject Gets or sets the GUI element that shows the model to the user.
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeDocument Initialize the controller with the document. If successful, the function has to return true. Here, you can give two arguments. The first is the document for the enabled state, the second is the document to show in the disabled state.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnEnabledChanged Switches the active controller according to the enabled state.
Protected methodOnPropertyChanged Raises the PropertyChanged event.
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChangedOccurs when a property value changes.
Top
See Also