Click or drag to resize

GUIFactoryServiceGetControllerAndControl(Object, Type, Type, UseDocument) Method

Gets an IMVCController for a given document type, and finding the right GUI user control for it.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public IMVCController? GetControllerAndControl(
	Object[] args,
	Type? overrideArg0Type,
	Type expectedControllerType,
	UseDocument copyDocument
)

Parameters

args  Object
The argument list. The first element args[0] is the document for which the controller is searched. The following elements are optional, and are usually the parents of this document.
overrideArg0Type  Type
If this parameter is not null, this given type is used instead of determining the type of the arg[0] argument.
expectedControllerType  Type
Type of controller that you expect to return.
copyDocument  UseDocument
Determines whether to use the document directly or a cloned copy.

Return Value

IMVCController
The controller for that document when found. The controller is already initialized with the document. If no controller is found for the document, or if no GUI control is found for the controller, the return value is null.

Implements

IGuiFactoryServiceGetControllerAndControl(Object, Type, Type, UseDocument)
See Also