Click or drag to resize

ControlFactoryManager Class

Control factory used to create new controls.
Inheritance Hierarchy
SystemObject
  AxiomCore2.ManagersControlFactoryManager

Namespace: AxiomCore2.Managers
Assembly: Canary.Axiom.Session (in Canary.Axiom.Session.exe) Version: 25.6.0.25344+3070493948bf7d32a86bd3e9a8bcf4cc9a5b1929
Syntax
C#
public sealed class ControlFactoryManager : IDisposable

The ControlFactoryManager type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberInstance Reference to singleton instance.
Top
Methods
 NameDescription
Public methodCreateControl Create a new control. Control will still need to be added to the parent specified after it is created.
Public methodDisposeReleases all resources used by the ControlFactoryManager
Public methodGetUniqueName(ControlScreen, ControlKind) Generate a control name that is unique to the screen.
Public methodGetUniqueName(ControlScreen, String) Generate a control name that is unique to the screen.
Top
Example
Use the static Instance property to access this class.
C#
var button = ControlFactory.Instance.CreateControl(ControlKind.Button);
This will create a button control that can then be added to a IControlParent's Children collection.
See Also