Class ItemPage
The item part of a DataForm
[TypeStore]
public class ItemPage : UserControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, INamed, IInputElement, IDataTemplateHost, ISetterValue, IReferenceContextMenuHost, IGridHandler
- Inheritance
-
AvaloniaObjectAnimatableStyledElementVisualLayoutableInteractiveInputElementControlTemplatedControlContentControlUserControlItemPage
- Implements
-
IDataContextProviderILogicalIThemeVariantHostIResourceHostIResourceNodeIStyleHostISetLogicalParentISetInheritanceParentINamedIInputElementIDataTemplateHostISetterValue
- Inherited Members
-
UserControl.OnCreateAutomationPeer()ContentControl.ContentPropertyContentControl.ContentTemplatePropertyContentControl.HorizontalContentAlignmentPropertyContentControl.VerticalContentAlignmentPropertyContentControl.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)ContentControl.RegisterContentPresenter(ContentPresenter)ContentControl.ContentContentControl.ContentTemplateContentControl.PresenterContentControl.HorizontalContentAlignmentContentControl.VerticalContentAlignmentTemplatedControl.BackgroundPropertyTemplatedControl.BackgroundSizingPropertyTemplatedControl.BorderBrushPropertyTemplatedControl.BorderThicknessPropertyTemplatedControl.CornerRadiusPropertyTemplatedControl.FontFamilyPropertyTemplatedControl.FontFeaturesPropertyTemplatedControl.FontSizePropertyTemplatedControl.FontStylePropertyTemplatedControl.FontWeightPropertyTemplatedControl.FontStretchPropertyTemplatedControl.ForegroundPropertyTemplatedControl.LetterSpacingPropertyTemplatedControl.PaddingPropertyTemplatedControl.TemplatePropertyTemplatedControl.IsTemplateFocusTargetPropertyTemplatedControl.TemplateAppliedEventTemplatedControl.GetIsTemplateFocusTarget(Control)TemplatedControl.ApplyTemplate()TemplatedControl.GetTemplateFocusTarget()TemplatedControl.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnApplyTemplate(TemplateAppliedEventArgs)TemplatedControl.OnTemplateChanged(AvaloniaPropertyChangedEventArgs)TemplatedControl.BackgroundTemplatedControl.BackgroundSizingTemplatedControl.BorderBrushTemplatedControl.BorderThicknessTemplatedControl.CornerRadiusTemplatedControl.FontFamilyTemplatedControl.FontFeaturesTemplatedControl.FontSizeTemplatedControl.FontStyleTemplatedControl.FontWeightTemplatedControl.FontStretchTemplatedControl.ForegroundTemplatedControl.LetterSpacingTemplatedControl.PaddingTemplatedControl.TemplateTemplatedControl.TemplateAppliedControl.FocusAdornerPropertyControl.TagPropertyControl.ContextMenuPropertyControl.ContextFlyoutPropertyControl.RequestBringIntoViewEventControl.LoadedEventControl.UnloadedEventControl.SizeChangedEventControl.OnLoaded(RoutedEventArgs)Control.OnUnloaded(RoutedEventArgs)Control.OnSizeChanged(SizeChangedEventArgs)Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)Control.OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)Control.OnGotFocus(FocusChangedEventArgs)Control.OnLostFocus(FocusChangedEventArgs)Control.OnPointerReleased(PointerReleasedEventArgs)Control.OnKeyUp(KeyEventArgs)Control.FocusAdornerControl.DataTemplatesControl.ContextMenuControl.ContextFlyoutControl.IsLoadedControl.TagControl.LoadedControl.UnloadedControl.SizeChangedInputElement.FocusablePropertyInputElement.IsEnabledPropertyInputElement.IsEffectivelyEnabledPropertyInputElement.CursorPropertyInputElement.IsKeyboardFocusWithinPropertyInputElement.IsFocusedPropertyInputElement.IsHitTestVisiblePropertyInputElement.IsPointerOverPropertyInputElement.IsTabStopPropertyInputElement.GotFocusEventInputElement.GettingFocusEventInputElement.LostFocusEventInputElement.LosingFocusEventInputElement.KeyDownEventInputElement.KeyUpEventInputElement.TabIndexPropertyInputElement.TextInputEventInputElement.TextInputMethodClientRequestedEventInputElement.PointerEnteredEventInputElement.PointerExitedEventInputElement.PointerMovedEventInputElement.PointerPressedEventInputElement.PointerReleasedEventInputElement.PointerCaptureLostEventInputElement.PointerWheelChangedEventInputElement.ContextRequestedEventInputElement.ContextCanceledEventInputElement.IsHoldingEnabledPropertyInputElement.IsHoldWithMouseEnabledPropertyInputElement.PinchEventInputElement.PinchEndedEventInputElement.PullGestureEventInputElement.PullGestureEndedEventInputElement.SwipeGestureEventInputElement.SwipeGestureEndedEventInputElement.ScrollGestureEventInputElement.ScrollGestureInertiaStartingEventInputElement.ScrollGestureEndedEventInputElement.PointerTouchPadGestureMagnifyEventInputElement.PointerTouchPadGestureRotateEventInputElement.PointerTouchPadGestureSwipeEventInputElement.TappedEventInputElement.RightTappedEventInputElement.HoldingEventInputElement.DoubleTappedEventInputElement.Focus(NavigationMethod, KeyModifiers)InputElement.OnAccessKey(RoutedEventArgs)InputElement.OnGettingFocus(FocusChangingEventArgs)InputElement.OnLosingFocus(FocusChangingEventArgs)InputElement.OnKeyDown(KeyEventArgs)InputElement.OnTextInput(TextInputEventArgs)InputElement.OnPointerEntered(PointerEventArgs)InputElement.OnPointerExited(PointerEventArgs)InputElement.OnPointerMoved(PointerEventArgs)InputElement.OnPointerPressed(PointerPressedEventArgs)InputElement.GetNextTabStopOverride()InputElement.GetPreviousTabStopOverride()InputElement.GetFirstFocusableElementOverride()InputElement.GetLastFocusableElementOverride()InputElement.OnPointerCaptureLost(PointerCaptureLostEventArgs)InputElement.OnPointerWheelChanged(PointerWheelEventArgs)InputElement.OnTapped(TappedEventArgs)InputElement.OnRightTapped(TappedEventArgs)InputElement.OnDoubleTapped(TappedEventArgs)InputElement.OnHolding(HoldingRoutedEventArgs)InputElement.UpdateIsEffectivelyEnabled()InputElement.GetIsHoldingEnabled(StyledElement)InputElement.GetIsHoldWithMouseEnabled(StyledElement)InputElement.FocusableInputElement.IsEnabledInputElement.CursorInputElement.IsKeyboardFocusWithinInputElement.IsFocusedInputElement.IsHitTestVisibleInputElement.IsPointerOverInputElement.IsTabStopInputElement.IsEffectivelyEnabledInputElement.TabIndexInputElement.KeyBindingsInputElement.IsEnabledCoreInputElement.GestureRecognizersInputElement.GotFocusInputElement.GettingFocusInputElement.LostFocusInputElement.LosingFocusInputElement.KeyDownInputElement.KeyUpInputElement.TextInputInputElement.TextInputMethodClientRequestedInputElement.PointerEnteredInputElement.PointerExitedInputElement.PointerMovedInputElement.PointerPressedInputElement.PointerReleasedInputElement.PointerCaptureLostInputElement.PointerWheelChangedInputElement.ContextRequestedInputElement.ContextCanceledInputElement.PinchInputElement.PinchEndedInputElement.PullGestureInputElement.PullGestureEndedInputElement.ScrollGestureInputElement.ScrollGestureInertiaStartingInputElement.ScrollGestureEndedInputElement.PointerTouchPadGestureMagnifyInputElement.PointerTouchPadGestureRotateInputElement.SwipeGestureInputElement.SwipeGestureEndedInputElement.PointerTouchPadGestureSwipeInputElement.TappedInputElement.RightTappedInputElement.HoldingInputElement.DoubleTappedInteractive.RaiseEvent(RoutedEventArgs)Interactive.BuildEventRoute(RoutedEvent)Layoutable.DesiredSizePropertyLayoutable.WidthPropertyLayoutable.HeightPropertyLayoutable.MinWidthPropertyLayoutable.MaxWidthPropertyLayoutable.MinHeightPropertyLayoutable.MaxHeightPropertyLayoutable.MarginPropertyLayoutable.HorizontalAlignmentPropertyLayoutable.VerticalAlignmentPropertyLayoutable.UseLayoutRoundingPropertyLayoutable.UpdateLayout()Layoutable.Measure(Size)Layoutable.Arrange(Rect)Layoutable.InvalidateMeasure()Layoutable.InvalidateArrange()Layoutable.AffectsMeasure<T>(params AvaloniaProperty[])Layoutable.AffectsArrange<T>(params AvaloniaProperty[])Layoutable.MeasureCore(Size)Layoutable.MeasureOverride(Size)Layoutable.ArrangeCore(Rect)Layoutable.ArrangeOverride(Size)Layoutable.OnMeasureInvalidated()Layoutable.OnVisualParentChanged(Visual, Visual)Layoutable.WidthLayoutable.HeightLayoutable.MinWidthLayoutable.MaxWidthLayoutable.MinHeightLayoutable.MaxHeightLayoutable.MarginLayoutable.HorizontalAlignmentLayoutable.VerticalAlignmentLayoutable.DesiredSizeLayoutable.IsMeasureValidLayoutable.IsArrangeValidLayoutable.UseLayoutRoundingLayoutable.EffectiveViewportChangedLayoutable.LayoutUpdatedVisual.BoundsPropertyVisual.ClipToBoundsPropertyVisual.ClipPropertyVisual.IsVisiblePropertyVisual.OpacityPropertyVisual.OpacityMaskPropertyVisual.CacheModePropertyVisual.EffectPropertyVisual.HasMirrorTransformPropertyVisual.RenderTransformPropertyVisual.RenderTransformOriginPropertyVisual.FlowDirectionPropertyVisual.VisualParentPropertyVisual.ZIndexPropertyVisual.GetFlowDirection(Visual)Visual.SetFlowDirection(Visual, FlowDirection)Visual.InvalidateVisual()Visual.Render(DrawingContext)Visual.AffectsRender<T>(params AvaloniaProperty[])Visual.OnAttachedToVisualTree(VisualTreeAttachmentEventArgs)Visual.OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs)Visual.InvalidateMirrorTransform()Visual.BoundsVisual.ClipToBoundsVisual.ClipVisual.IsEffectivelyVisibleVisual.IsVisibleVisual.OpacityVisual.OpacityMaskVisual.CacheModeVisual.EffectVisual.HasMirrorTransformVisual.RenderTransformVisual.RenderTransformOriginVisual.FlowDirectionVisual.ZIndexVisual.VisualChildrenVisual.VisualRootVisual.BypassFlowDirectionPoliciesVisual.AttachedToVisualTreeVisual.DetachedFromVisualTreeStyledElement.DataContextPropertyStyledElement.NamePropertyStyledElement.ParentPropertyStyledElement.TemplatedParentPropertyStyledElement.ThemePropertyStyledElement.BeginInit()StyledElement.EndInit()StyledElement.ApplyStyling()StyledElement.InitializeIfNeeded()StyledElement.OnDataContextBeginUpdate()StyledElement.OnDataContextEndUpdate()StyledElement.OnInitialized()StyledElement.NameStyledElement.ClassesStyledElement.DataContextStyledElement.IsInitializedStyledElement.StylesStyledElement.StyleKeyStyledElement.ResourcesStyledElement.TemplatedParentStyledElement.ThemeStyledElement.LogicalChildrenStyledElement.PseudoClassesStyledElement.StyleKeyOverrideStyledElement.ParentStyledElement.ActualThemeVariantStyledElement.AttachedToLogicalTreeStyledElement.DetachedFromLogicalTreeStyledElement.DataContextChangedStyledElement.InitializedStyledElement.ResourcesChangedStyledElement.ActualThemeVariantChangedAnimatable.TransitionsPropertyAnimatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)Animatable.TransitionsAvaloniaObject.CheckAccess()AvaloniaObject.VerifyAccess()AvaloniaObject.ClearValue(AvaloniaProperty)AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)AvaloniaObject.ClearValue<T>(StyledProperty<T>)AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetHashCode()AvaloniaObject.GetValue(AvaloniaProperty)AvaloniaObject.GetValue<T>(StyledProperty<T>)AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)AvaloniaObject.IsAnimating(AvaloniaProperty)AvaloniaObject.IsSet(AvaloniaProperty)AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)AvaloniaObject.Bind(AvaloniaProperty, BindingBase)AvaloniaObject.CoerceValue(AvaloniaProperty)AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)AvaloniaObject.InheritanceParentAvaloniaObject.this[AvaloniaProperty]AvaloniaObject.this[IndexerDescriptor]AvaloniaObject.DispatcherAvaloniaObject.PropertyChanged
- Extension Methods
Constructors
ItemPage()
Constructor.
public ItemPage()
Fields
Context
The item UI context.
protected UiItemContext Context
Field Value
fDataForm
The parent data form.
protected DataForm fDataForm
Field Value
fFactBoxColumn
The column of the FactBox pane.
protected ColumnDefinition fFactBoxColumn
Field Value
- ColumnDefinition
fFactBoxControls
The created FactBox controls by definition.
protected List<Tuple<ItemFactBoxDef, ItemFactBoxControl>> fFactBoxControls
Field Value
fFactBoxPane
The right-side FactBox pane.
protected Border fFactBoxPane
Field Value
- Border
fFactBoxPaneVisible
True when the FactBox pane is visible.
protected bool fFactBoxPaneVisible
Field Value
fFactBoxPaneWidth
The default width of the FactBox pane.
protected double fFactBoxPaneWidth
Field Value
fFactBoxSplitter
The splitter between the main item page content and the FactBox pane.
protected GridSplitter fFactBoxSplitter
Field Value
- GridSplitter
fFactBoxSplitterColumn
The splitter column of the FactBox pane.
protected ColumnDefinition fFactBoxSplitterColumn
Field Value
- ColumnDefinition
fFactBoxTabs
The tab control hosting FactBoxes.
protected TabControl fFactBoxTabs
Field Value
- TabControl
fGridColumnReadOnlyStates
Stores the original read-only state of detail grid columns.
protected Dictionary<GroupGridColumn, bool> fGridColumnReadOnlyStates
Field Value
fGridReadOnlyStates
Stores the original read-only state of detail grids.
protected Dictionary<GroupGrid, bool> fGridReadOnlyStates
Field Value
fIsReadOnly
True when this item page is read-only.
protected bool fIsReadOnly
Field Value
fStandardInfoFactBoxControl
The built-in item information FactBox control.
protected ItemInfoFactBoxControl fStandardInfoFactBoxControl
Field Value
Properties
Binders
The binders of this instance.
public List<ItemBinder> Binders { get; }
Property Value
CurrentRow
The current data row.
public DataRow CurrentRow { get; }
Property Value
DataForm
The parent form.
public DataForm DataForm { get; set; }
Property Value
DataFormContext
Form context.
public DataFormContext DataFormContext { get; }
Property Value
FactBoxPaneVisible
Gets or sets whether the FactBox pane is visible.
public bool FactBoxPaneVisible { get; set; }
Property Value
FormDef
The form definition.
public FormDef FormDef { get; }
Property Value
HasFactBoxPane
True when this item page has a FactBox pane.
public bool HasFactBoxPane { get; }
Property Value
InvalidActions
Form actions the form is not allowed to execute.
public DataFormAction InvalidActions { get; }
Property Value
IsBindingDone
True when the binding is completed
public bool IsBindingDone { get; protected set; }
Property Value
IsReadOnly
True when data-bound controls and detail grids are read-only.
public bool IsReadOnly { get; }
Property Value
ItemBinder
The main item binder.
public ItemBinder ItemBinder { get; }
Property Value
Module
The data module.
public DataModule Module { get; }
Property Value
ModuleDef
The module definition.
public ModuleDef ModuleDef { get; }
Property Value
StartAction
The first action the form should execute after initialization.
public DataFormAction StartAction { get; }
Property Value
Methods
ApplyIdColumnsVisible(bool)
Applies the visibility of detail grid columns ending with ID.
public virtual void ApplyIdColumnsVisible(bool Value)
Parameters
ValueboolTrue to show ID columns; otherwise, false.
Bind()
Binds this instance.
public virtual void Bind()
Bind(int)
Binds this instance.
public virtual void Bind(int ColumnCount)
Parameters
ColumnCountintThe editor column count.
CanExecute(GridCommandContext)
Returns true when a grid command can execute.
public virtual bool CanExecute(GridCommandContext Context)
Parameters
ContextGridCommandContextThe grid command context.
Returns
- bool
True if the command can execute; otherwise, false.
CanExecute(ReferenceMenuCommandContext)
Returns true when a reference menu command can execute.
public virtual bool CanExecute(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- bool
True if the command can execute; otherwise, false.
CanOpenRefContextMenu(ReferenceContextMenu)
Returns true when a reference context menu can open.
public virtual bool CanOpenRefContextMenu(ReferenceContextMenu RefContextMenu)
Parameters
RefContextMenuReferenceContextMenuThe reference context menu.
Returns
- bool
True if the context menu can open; otherwise, false.
CaptureDetailGridSelection()
Captures the current selection of all detail grids.
public virtual Dictionary<GroupGrid, Tuple<int, GroupGridColumn>> CaptureDetailGridSelection()
Returns
- Dictionary<GroupGrid, Tuple<int, GroupGridColumn>>
The captured detail grid selections.
CreateEditor(FieldDef, ItemBinder)
Creates a field editor.
protected virtual Control CreateEditor(FieldDef Field, ItemBinder Binder)
Parameters
FieldFieldDefThe field definition.
BinderItemBinderThe item binder.
Returns
- Control
The created editor control.
CreateFactBoxContext(ItemFactBoxDef)
Creates the context passed to a FactBox provider and control.
protected virtual ItemFactBoxContext CreateFactBoxContext(ItemFactBoxDef Def)
Parameters
DefItemFactBoxDefThe FactBox definition.
Returns
- ItemFactBoxContext
The created context.
CreateFactBoxControl(ItemFactBoxDef)
Creates the control that renders a FactBox.
protected virtual Control CreateFactBoxControl(ItemFactBoxDef Def)
Parameters
DefItemFactBoxDefThe FactBox definition.
Returns
- Control
The created control.
CreateFactBoxMessage(string)
Creates a FactBox message control.
protected virtual Control CreateFactBoxMessage(string Message)
Parameters
MessagestringThe message text.
Returns
- Control
The created message control.
CreateFactBoxPane(List<ItemFactBoxDef>)
Creates the right-side FactBox pane.
protected virtual Border CreateFactBoxPane(List<ItemFactBoxDef> FactBoxes)
Parameters
FactBoxesList<ItemFactBoxDef>The FactBox definitions.
Returns
- Border
The created pane.
CreateFactBoxPlaceholder(ItemFactBoxDef)
Creates a placeholder control for a FactBox tab.
protected virtual Control CreateFactBoxPlaceholder(ItemFactBoxDef Def)
Parameters
DefItemFactBoxDefThe FactBox definition.
Returns
- Control
The created placeholder control.
CreateFactBoxTab(ItemFactBoxDef)
Creates a tab for a FactBox definition.
protected virtual TabItem CreateFactBoxTab(ItemFactBoxDef Def)
Parameters
DefItemFactBoxDefThe FactBox definition.
Returns
- TabItem
The created tab item.
CreateFactBoxTabs(List<ItemFactBoxDef>)
Creates the tab control hosting the FactBoxes.
protected virtual TabControl CreateFactBoxTabs(List<ItemFactBoxDef> FactBoxes)
Parameters
FactBoxesList<ItemFactBoxDef>The FactBox definitions.
Returns
- TabControl
The created tab control.
CreateItemPageRoot(Control, List<ItemFactBoxDef>)
Creates the item page root content.
protected virtual Control CreateItemPageRoot(Control MainContent, List<ItemFactBoxDef> FactBoxes)
Parameters
MainContentControlThe main item page content.
FactBoxesList<ItemFactBoxDef>The visible FactBox definitions.
Returns
- Control
The created root content.
CreateStandardInfoFactBoxControl()
Creates the built-in item information FactBox control.
protected virtual Control CreateStandardInfoFactBoxControl()
Returns
- Control
The created control.
CreateStandardInfoFactBoxData(ItemFactBoxContext)
Creates the data for the built-in item information FactBox.
protected virtual ItemStandardInfoFactBoxData CreateStandardInfoFactBoxData(ItemFactBoxContext Context)
Parameters
ContextItemFactBoxContextThe FactBox context.
Returns
- ItemStandardInfoFactBoxData
The created data.
Execute(GridCommandContext)
Executes a grid command.
public virtual object Execute(GridCommandContext Context)
Parameters
ContextGridCommandContextThe grid command context.
Returns
- object
The command result.
Execute(ReferenceMenuCommandContext)
Executes a reference menu command.
public virtual object Execute(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- object
The command result.
ExecuteGridAdd(GridCommandContext)
Adds a new row to a detail grid table.
public virtual object ExecuteGridAdd(GridCommandContext Context)
Parameters
ContextGridCommandContextThe grid command context.
Returns
- object
The created row.
ExecuteGridDelete(GridCommandContext)
Deletes the selected row from a detail grid table.
public virtual object ExecuteGridDelete(GridCommandContext Context)
Parameters
ContextGridCommandContextThe grid command context.
Returns
- object
The command result.
ExecuteReferenceAdd(ReferenceMenuCommandContext)
Executes the Add reference command.
public virtual Task<DataFormContext> ExecuteReferenceAdd(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- Task<DataFormContext>
The data form context.
ExecuteReferenceClear(ReferenceMenuCommandContext)
Executes the Clear reference command.
public virtual object ExecuteReferenceClear(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- object
The command result.
ExecuteReferenceEdit(ReferenceMenuCommandContext)
Executes the Edit reference command.
public virtual Task<DataFormContext> ExecuteReferenceEdit(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- Task<DataFormContext>
The data form context.
ExecuteReferenceReload(ReferenceMenuCommandContext)
Executes the Reload reference command.
public virtual object ExecuteReferenceReload(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- object
The command result.
ExecuteReferenceShowList(ReferenceMenuCommandContext)
Executes the Show List reference command.
public virtual Task<DataFormContext> ExecuteReferenceShowList(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- Task<DataFormContext>
The data form context.
GetFactBoxData(ItemFactBoxDef, ItemFactBoxContext)
Returns the data produced by a FactBox provider.
protected virtual object GetFactBoxData(ItemFactBoxDef Def, ItemFactBoxContext Context)
Parameters
DefItemFactBoxDefThe FactBox definition.
ContextItemFactBoxContextThe FactBox context.
Returns
- object
The FactBox data.
GetGridCommands()
Returns the grid commands provided by this handler.
public virtual GridCommand[] GetGridCommands()
Returns
- GridCommand[]
The grid commands.
GetVisibleFactBoxes()
Returns the visible FactBox definitions of the current form.
protected virtual List<ItemFactBoxDef> GetVisibleFactBoxes()
Returns
- List<ItemFactBoxDef>
The visible FactBox definitions.
IsBindingReadOnly(TripousBinding)
Returns true when a binding should be read-only.
protected virtual bool IsBindingReadOnly(TripousBinding Binding)
Parameters
BindingTripousBindingThe binding to check.
Returns
- bool
True if the binding should be read-only; otherwise, false.
IsSuccessfulReferenceResult(ReferenceMenuCommandContext)
Returns true when a reference command produced a successful form result.
protected virtual bool IsSuccessfulReferenceResult(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
Returns
- bool
True if the reference command succeeded; otherwise, false.
Refresh()
Refreshes all binders.
public virtual void Refresh()
RefreshFactBoxes()
Refreshes all created FactBoxes.
protected virtual void RefreshFactBoxes()
RefreshReferenceBinding(ReferenceMenuCommandContext)
Refreshes a reference binding.
protected virtual void RefreshReferenceBinding(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
RefreshStandardInfoFactBox()
Refreshes the built-in item information FactBox.
protected virtual void RefreshStandardInfoFactBox()
ReloadReferenceLookup(ReferenceMenuCommandContext)
Reloads a reference lookup source.
protected virtual void ReloadReferenceLookup(ReferenceMenuCommandContext Context)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
RestoreDetailGridSelection(Dictionary<GroupGrid, Tuple<int, GroupGridColumn>>)
Restores the selection of all detail grids.
public virtual void RestoreDetailGridSelection(Dictionary<GroupGrid, Tuple<int, GroupGridColumn>> Selections)
Parameters
SelectionsDictionary<GroupGrid, Tuple<int, GroupGridColumn>>The captured detail grid selections.
SetControlReadOnly(ControlBinding, bool)
Sets a bound control to read-only or restores its field-defined state.
protected virtual void SetControlReadOnly(ControlBinding Binding, bool Value)
Parameters
BindingControlBindingThe control binding.
ValueboolTrue to force read-only.
SetGridReadOnly(UiDetailTableInfo, bool)
Sets a detail grid to read-only or restores its field-defined state.
protected virtual void SetGridReadOnly(UiDetailTableInfo DetailInfo, bool Value)
Parameters
DetailInfoUiDetailTableInfoThe detail table information.
ValueboolTrue to force read-only.
SetReadOnly(bool)
Sets the data-bound controls and detail grids to read-only or restores their field-defined state.
public virtual void SetReadOnly(bool Value)
Parameters
ValueboolTrue to force read-only.
SetReferenceValue(ReferenceMenuCommandContext, object)
Sets a reference value to the bound row.
protected virtual void SetReferenceValue(ReferenceMenuCommandContext Context, object Value)
Parameters
ContextReferenceMenuCommandContextThe reference menu command context.
ValueobjectThe reference value.
ToggleFactBoxPane()
Toggles the FactBox pane.
public virtual void ToggleFactBoxPane()
Events
CurrentRowChanged
Occurs after the current row changes.
public event EventHandler CurrentRowChanged
Event Type
CurrentRowChanging
Occurs before the current row changes.
public event EventHandler CurrentRowChanging