Class UiItemPage
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
contextUiItemContextGridGridRowIndexintFieldFieldDefBinderItemBinderTableUiInfoUiTableInfo
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
ColumnCountint
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
contextUiItemContextParentControlControlTableUiInfoUiTableInfoBinderItemBinderColumnCountint
CreateGroupColumnGrids(Expander, int)
Creates the visual columns of a field group.
public static List<Grid> CreateGroupColumnGrids(Expander Expander, int ColumnCount)
Parameters
ExpanderExpanderColumnCountint
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
ParentControlControlTableUiInfoUiTableInfoBinderItemBinder
CreateSinglePageLayout(UiItemContext)
Creates a single-page layout for the top table and its one-to-one details.
public static void CreateSinglePageLayout(UiItemContext context)
Parameters
contextUiItemContext
CreateTabbedTopLayout(UiItemContext)
Creates a tabbed layout for the top table and all multi-row detail tables.
public static void CreateTabbedTopLayout(UiItemContext context)
Parameters
contextUiItemContext
CreateTopTableTabItem(UiItemContext)
Creates the tab item used by the top table in a tabbed item page layout.
public static TabItem CreateTopTableTabItem(UiItemContext context)
Parameters
contextUiItemContext
Returns
- TabItem
IsBooleanField(FieldDef)
Returns true if a field is boolean.
public static bool IsBooleanField(FieldDef Field)
Parameters
FieldFieldDef
Returns
IsDetailGridField(FieldDef)
Returns true if a field can be displayed in a detail grid.
public static bool IsDetailGridField(FieldDef Field)
Parameters
FieldFieldDef
Returns
NormalizeColumnCount(int)
Normalizes the requested visual column count to the supported range.
public static int NormalizeColumnCount(int ColumnCount)
Parameters
ColumnCountint
Returns
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
Returns
- Dictionary<string, List<List<FieldDef>>>