Interface IBaseDefaultSingleView<T>
The standard single entity item view that can dynamically create appropriate controls as required from an implementation of the BaseDefaultSingleViewController<T>
This is the core view for creating views for any entity in the system
Both this view and the IBaseGrid<T> view have a similar mechanism for creating controls dynamically within the UIInherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
[ViewDescriptor(typeof(BaseEntityDefaultSingleViewInstanceEnumerator))]
public interface IBaseDefaultSingleView<T> : IModelView where T : IBaseEntity
Type Parameters
Name | Description |
---|---|
T | The type of entity this view works with |
Methods
CreateControl(ControlDisplayInfo)
Indicates to the view that it should create the specified control in the client application ui for displaying and editing associated data
Declaration
void CreateControl(ControlDisplayInfo definition)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | definition | The definition of the control to be created within the client application view |
DisplayControlItem(ControlDisplayInfo, object)
Displays the specified item
against the specified control definition
Declaration
void DisplayControlItem(ControlDisplayInfo definition, object item)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | definition | The control to display the specified item against |
object | item | The item to display |
DisplayItem(T)
Displays any element of the view itself that needs displayed for the item, that is not displayed by the individual controls through DisplayControlItem(ControlDisplayInfo, object)
Declaration
void DisplayItem(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The instance of the item to use |
UpdateControl(ControlDisplayInfo)
Indicates that the client application should refresh its display of the specified existing control as the definition may have updated
Declaration
void UpdateControl(ControlDisplayInfo definition)
Parameters
Type | Name | Description |
---|---|---|
ControlDisplayInfo | definition | The definition of the control to be updated within the client application view |
UpdateView()
Indicates the entire view should be updated to reflect setting changes against the view itself such as if the controls are arranged in a grid, stacked, or wrapper, etc.
Declaration
Task UpdateView()
Returns
Type | Description |
---|---|
Task |