Method EnsureSideBarChild
EnsureSideBarChild<T>(SplitPanelPosition, string?, Action<T>?, Action<T>?, EnsureSideBarChildFlags)
Ensures that a child control of type T exists
within the sidebar panel at the
specified position.
public virtual T EnsureSideBarChild<T>(SplitPanelPosition position, string? title, Action<T>? onCreate = null, Action<T>? onUpdate = null, TabControl.EnsureSideBarChildFlags flags = EnsureSideBarChildFlags.None) where T : AbstractControl, new()
Parameters
positionSplitPanelPositionThe position of the sidebar panel where the control should be ensured.
titlestringThe title of the child control.
onCreateAction<T>The action to execute when creating the child control.
onUpdateAction<T>The action to execute when updating the child control.
flagsTabControl.EnsureSideBarChildFlags
Returns
- T
The ensured child control of type
Twithin the specified sidebar panel.
Type Parameters
TThe type of the control to ensure, which must derive from AbstractControl and have a parameterless constructor.