Table of Contents

Class UiItemPage

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

Builds the main layout of an item page, including field groups, field rows and top-table layouts.

public static class UiItemPage
Inheritance
UiItemPage
Inherited Members

Methods

AddControlRow(UiItemContext, Grid, int, FieldDef, ItemBinder, UiTableInfo)

Adds the row used to display and bind a single field.

public static void AddControlRow(UiItemContext context, Grid Grid, int RowIndex, FieldDef Field, ItemBinder Binder, UiTableInfo TableUiInfo)

Parameters

context UiItemContext
Grid Grid
RowIndex int
Field FieldDef
Binder ItemBinder
TableUiInfo UiTableInfo

CreateColumnGrid()

Creates a column grid containing the label, editor and trailing spacing columns.

public static Grid CreateColumnGrid()

Returns

Grid

CreateColumnRootGrid(int)

Creates the root grid that hosts the visual columns of a field group.

public static Grid CreateColumnRootGrid(int ColumnCount)

Parameters

ColumnCount int

Returns

Grid

CreateFieldGroups(UiItemContext, Control, UiTableInfo, ItemBinder, int)

Creates the grouped field UI for a table.

public static void CreateFieldGroups(UiItemContext context, Control ParentControl, UiTableInfo TableUiInfo, ItemBinder Binder, int ColumnCount)

Parameters

context UiItemContext
ParentControl Control
TableUiInfo UiTableInfo
Binder ItemBinder
ColumnCount int

CreateGroupColumnGrids(Expander, int)

Creates the visual columns of a field group.

public static List<Grid> CreateGroupColumnGrids(Expander Expander, int ColumnCount)

Parameters

Expander Expander
ColumnCount int

Returns

List<Grid>

CreateLargeMemoGroups(Control, UiTableInfo, ItemBinder)

Creates the standalone groups used by large memo fields of a table.

public static void CreateLargeMemoGroups(Control ParentControl, UiTableInfo TableUiInfo, ItemBinder Binder)

Parameters

ParentControl Control
TableUiInfo UiTableInfo
Binder ItemBinder

CreateSinglePageLayout(UiItemContext)

Creates a single-page layout for the top table and its one-to-one details.

public static void CreateSinglePageLayout(UiItemContext context)

Parameters

context UiItemContext

CreateTabbedTopLayout(UiItemContext)

Creates a tabbed layout for the top table and all multi-row detail tables.

public static void CreateTabbedTopLayout(UiItemContext context)

Parameters

context UiItemContext

CreateTopTableTabItem(UiItemContext)

Creates the tab item used by the top table in a tabbed item page layout.

public static TabItem CreateTopTableTabItem(UiItemContext context)

Parameters

context UiItemContext

Returns

TabItem

IsBooleanField(FieldDef)

Returns true if a field is boolean.

public static bool IsBooleanField(FieldDef Field)

Parameters

Field FieldDef

Returns

bool

IsDetailGridField(FieldDef)

Returns true if a field can be displayed in a detail grid.

public static bool IsDetailGridField(FieldDef Field)

Parameters

Field FieldDef

Returns

bool

NormalizeColumnCount(int)

Normalizes the requested visual column count to the supported range.

public static int NormalizeColumnCount(int ColumnCount)

Parameters

ColumnCount int

Returns

int

SplitBindableGroups(TableDef, int)

Splits bindable fields into visual groups and distributes them across layout columns.

public static Dictionary<string, List<List<FieldDef>>> SplitBindableGroups(TableDef TableDef, int ColumnCount)

Parameters

TableDef TableDef
ColumnCount int

Returns

Dictionary<string, List<List<FieldDef>>>