Interface IControlCreator
Creates and works with controls.
Namespace: LemonEdge.Client.UI.API.Controls
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public interface IControlCreator : IRequireRoot
Methods
CreateControl<T>(params object[])
Creates a UI control. Allows for concrete implementors to override the control type that is returned.
Declaration
T CreateControl<T>(params object[] args) where T : class
Parameters
Type | Name | Description |
---|---|---|
object[] | args | any args for creation |
Returns
Type | Description |
---|---|
T | The concrete control |
Type Parameters
Name | Description |
---|---|
T | The base type of control |
CreateModelView(IModelLayoutDisplayer, ViewDescriptorInstance)
Creates an IModelView, given the provided ViewDescriptorInstance.
Declaration
IModelView CreateModelView(IModelLayoutDisplayer displayer, ViewDescriptorInstance viewDescriptor)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutDisplayer | displayer | |
ViewDescriptorInstance | viewDescriptor | The descriptor |
Returns
Type | Description |
---|---|
IModelView | An IModelView |
CreateSingleControl(ControlDisplayInfo, double?)
Creates Control according to control definition
Declaration
ISingleControl CreateSingleControl(ControlDisplayInfo info, double? widthOverride = null)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | info | |
double? | widthOverride |
Returns
Type | Description |
---|---|
ISingleControl |
CreateWindow<T>()
Creates an IWindow, given the generic abstract interface type T
Declaration
T CreateWindow<T>() where T : IWindow
Returns
Type | Description |
---|---|
T | A concrete window |
Type Parameters
Name | Description |
---|---|
T | The interface type |
GetControlType(ControlDisplayInfo)
Gets Control Type from ControlDisplayInfo
Declaration
Type GetControlType(ControlDisplayInfo info)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | info |
Returns
Type | Description |
---|---|
Type |