Coordinates measurement of the prompt input box with inline button panels. In stacked layouts, the parent measures the button panels.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PromptInputDockLayoutPanel : DockLayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelDockLayoutPanelPromptInputDockLayoutPanel...
Implements:
Inherited Members
Constructors
public PromptInputDockLayoutPanel()
Properties
Gets or sets the input text box hosted by this panel. Its measured width is constrained based on whether the left/right button panels are inline siblings (see MeasureOverride(SizeF)).
public ChatInputTextBoxElement InputTextBox { get; set; }
Gets or sets the left buttons panel. Its DesiredSize width is subtracted from the available width when it is inline with InputTextBox.
public StackLayoutElementLite LeftButtons { get; set; }
Gets or sets the right buttons panel. Its DesiredSize width is subtracted from the available width when it is inline with InputTextBox.
public StackLayoutElementLite RightButtons { get; set; }
Methods
Measures the size required to accommodate all child elements with their docking constraints.
protected override SizeF MeasureOverride(SizeF availableSize)
A SizeF representing the minimum size needed to display all child elements with their requested dock positions.
Overrides:
This method implements the measurement logic for dock-based layout:
- Measures each child element with the remaining available space
- Accounts for space consumption based on dock positions (Left/Right consume width, Top/Bottom consume height)
- Calculates total space requirements for optimal layout
- Ensures that docked elements don't exceed available constraints
The measurement order follows the child collection sequence, where earlier elements take priority in space allocation, affecting the available space for subsequent elements.
Excludes the input box and side-button panels from this panel's base dock measurement. MeasureOverride(SizeF) remeasures the input box and measures side panels only when they are inline children; stacked panels remain measured by their parent.
protected override bool ShouldMeasureChild(RadElement child)
The child element to test.
Returns:false for the input box or either button panel; otherwise, the base dock-layout result.
Overrides: