Class GridController<T>
- Namespace
- The.WPF.Screens
- Assembly
- Instagile.WPF.dll
public abstract class GridController<T> : ScreenControllerBase<GridModel<T>, GridView, GridOptions>, IScreenController<GridModel<T>>, IScreenController where T : IEntity<T>
Type Parameters
T
- Inheritance
-
GridController<T>
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
GridController(IServices, IEntitySet<T>, Action<GridOptions>)
public GridController(IServices services, IEntitySet<T> entitySet, Action<GridOptions> configure = null)
Parameters
services IServices
entitySet IEntitySet<T>
configure Action<GridOptions>
Fields
ChangeExecutor
protected readonly NotificationExecutor ChangeExecutor
Field Value
- NotificationExecutor
Methods
CopyCell(GridRowBase<T>, string)
public void CopyCell(GridRowBase<T> row, string name)
Parameters
row GridRowBase<T>
name string
CopyRow(GridRowBase<T>)
public void CopyRow(GridRowBase<T> row)
Parameters
row GridRowBase<T>
CreateColumn(GridModel<T>, AttributeInfo)
protected virtual GridColumn CreateColumn(GridModel<T> vm, AttributeInfo a)
Parameters
vm GridModel<T>
a AttributeInfo
Returns
- GridColumn
CreateColumn(GridModel<T>, RelationshipInfo)
protected virtual GridColumn CreateColumn(GridModel<T> vm, RelationshipInfo r)
Parameters
vm GridModel<T>
r RelationshipInfo
Returns
- GridColumn
CreateUninitialisedModel(ISurface)
protected override GridModel<T> CreateUninitialisedModel(ISurface s)
Parameters
s ISurface
Returns
- GridModel<T>
CreateUninitialisedRowModel()
protected abstract GridRowBase<T> CreateUninitialisedRowModel()
Returns
- GridRowBase<T>
EnsureLoadedAsync()
public Task EnsureLoadedAsync()
Returns
- Task
GetAvailableColumns(GridModel<T>)
protected virtual IEnumerable<GridColumn> GetAvailableColumns(GridModel<T> vm)
Parameters
vm GridModel<T>
Returns
- IEnumerable<GridColumn>
GetCurrentOrdering(GridModel<T>)
public (PropertyInfo metadata, bool ascending)[] GetCurrentOrdering(GridModel<T> vm)
Parameters
vm GridModel<T>
Returns
- (PropertyInfo metadata, bool ascending)[]
GetCustomRowCommands(T)
protected virtual IEnumerable<IScreenCommand> GetCustomRowCommands(T row)
Parameters
row T
Returns
- IEnumerable<IScreenCommand>
GetPreloadedRelationships(GridModel<T>)
protected virtual IEnumerable<RelationshipInfo> GetPreloadedRelationships(GridModel<T> model)
Parameters
model GridModel<T>
Returns
- IEnumerable<RelationshipInfo>
InitialiseModel(GridModel<T>)
protected override void InitialiseModel(GridModel<T> vm)
Parameters
vm GridModel<T>
OnClosed()
protected override sealed void OnClosed()
OnControllerClosed()
protected virtual void OnControllerClosed()
OnControllerOpened()
protected virtual void OnControllerOpened()
OnOpened()
protected override sealed void OnOpened()