Class UiItemContext
Holds the shared state required while building and binding an item page UI.
public class UiItemContext
- Inheritance
-
UiItemContext
- Inherited Members
- Extension Methods
Constructors
UiItemContext()
Constructor.
public UiItemContext()
Properties
Binders
The binders of this instance.
public List<ItemBinder> Binders { get; }
Property Value
ColumnCount
The normalized number of visual columns used by the item page layout.
public int ColumnCount { get; set; }
Property Value
CreateEditorFunc
Creates the editor control used for a field.
public Func<FieldDef, ItemBinder, Control> CreateEditorFunc { get; set; }
Property Value
- Func<FieldDef, ItemBinder, Control>
CurrentRow
The current data row.
public DataRow CurrentRow { get; }
Property Value
GridHandler
The grid handler.
public IGridHandler GridHandler { get; set; }
Property Value
ItemBinder
The main item binder.
public ItemBinder ItemBinder { get; }
Property Value
Module
The data module.
NOTE: setting the module creates the TopTableUiInfo and the RowProvider too.
public DataModule Module { get; set; }
Property Value
ModuleDef
The definition of the data module.
public ModuleDef ModuleDef { get; }
Property Value
ParentControl
The control that receives the generated item page content.
public Control ParentControl { get; set; }
Property Value
- Control
RowProviderHost
Provides access to multiple IRowProvider.
Useful when multiple tables are in a one-to-one relationship, such as a Trade, a StoreTrade and a FinTrade table.
public IRowProviderHost RowProviderHost { get; }
Property Value
TopTableUiInfo
UI information for the top table and its visible detail tables.
public UiTableInfo TopTableUiInfo { get; }
Property Value
Methods
CreateOneToOneBinder(TableDef)
Creates a binder for a one-to-one detail table.
public ItemBinder CreateOneToOneBinder(TableDef TableDef)
Parameters
TableDefTableDef
Returns
GetRowProvider(TableDef)
Returns the row provider of a table.
public IRowProvider GetRowProvider(TableDef TableDef)
Parameters
TableDefTableDef