Class UiFactory
Creates reusable controls used by item page layouts and field editors.
public static class UiFactory
- Inheritance
-
UiFactory
- Inherited Members
Methods
AddChild(Control, Control)
Adds a child control to a panel or assigns it as the content of a content control.
public static void AddChild(Control ParentControl, Control Child)
Parameters
ParentControlControlChildControl
CreateExpander(Control, string)
Creates an expander.
public static Expander CreateExpander(Control ParentControl, string Caption)
Parameters
ParentControlControlCaptionstring
Returns
- Expander
CreateFieldLabel(FieldDef)
Creates the label used next to a field editor.
Lookup labels ending in "Id" are displayed without that suffix.
public static TextBlock CreateFieldLabel(FieldDef Field)
Parameters
FieldFieldDef
Returns
- TextBlock
CreateImageControl(FieldDef, ItemBinder)
Creates the placeholder control used for image fields.
public static Control CreateImageControl(FieldDef Field, ItemBinder Binder)
Parameters
FieldFieldDefBinderItemBinder
Returns
- Control
CreateLargeMemoEditor(FieldDef, ItemBinder)
Creates and binds the editor used for a large memo field.
public static Control CreateLargeMemoEditor(FieldDef Field, ItemBinder Binder)
Parameters
FieldFieldDefBinderItemBinder
Returns
- Control
CreateScrollViewer()
Creates the root scroll viewer.
public static ScrollViewer CreateScrollViewer()
Returns
- ScrollViewer
CreateStackPanel()
Creates a vertical stack panel.
public static StackPanel CreateStackPanel()
Returns
- StackPanel
CreateTabControl()
Creates a tab control.
public static TabControl CreateTabControl()
Returns
- TabControl
CreateToolBarBorder()
Creates a border for a toolbar.
public static Border CreateToolBarBorder()
Returns
- Border
CreateToolBarPanel()
Creates a horizontal stack panel.
public static StackPanel CreateToolBarPanel()
Returns
- StackPanel