Table of Contents

Class UiItemContext

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

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

List<ItemBinder>

ColumnCount

The normalized number of visual columns used by the item page layout.

public int ColumnCount { get; set; }

Property Value

int

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

DataRow

GridHandler

The grid handler.

public IGridHandler GridHandler { get; set; }

Property Value

IGridHandler

ItemBinder

The main item binder.

public ItemBinder ItemBinder { get; }

Property Value

ItemBinder

Module

The data module.

NOTE: setting the module creates the TopTableUiInfo and the RowProvider too.

public DataModule Module { get; set; }

Property Value

DataModule

ModuleDef

The definition of the data module.

public ModuleDef ModuleDef { get; }

Property Value

ModuleDef

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

IRowProviderHost

TopTableUiInfo

UI information for the top table and its visible detail tables.

public UiTableInfo TopTableUiInfo { get; }

Property Value

UiTableInfo

Methods

CreateOneToOneBinder(TableDef)

Creates a binder for a one-to-one detail table.

public ItemBinder CreateOneToOneBinder(TableDef TableDef)

Parameters

TableDef TableDef

Returns

ItemBinder

GetRowProvider(TableDef)

Returns the row provider of a table.

public IRowProvider GetRowProvider(TableDef TableDef)

Parameters

TableDef TableDef

Returns

IRowProvider