Class StackLayoutPanel
Arranges child elements into a single line that can be oriented horizontally or vertically.
Inherited Members
Namespace: Telerik.WinControls.Layouts
Assembly: Telerik.WinControls.dll
Syntax
public class StackLayoutPanel : LayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Remarks
StackLayoutPanel provides sophisticated linear layout functionality, allowing elements to be arranged either horizontally or vertically. It supports advanced features including element wrapping when space is exceeded, equal sizing modes, forced element dimensions, and specialized strip mode behavior.
Key capabilities include:
- Horizontal and vertical orientation support with automatic layout direction
- Element wrapping to new rows or columns when available space is exceeded
- Equal sizing modes for creating uniform element dimensions
- Right-to-left layout support with automatic content alignment adjustment
- Strip mode for single-line layouts without wrapping behavior
- Collapse elements on resize for responsive layout behavior
This layout panel is extensively used in toolbars, button panels, menu bars, ribbon controls, and other UI areas where elements need linear arrangement with intelligent space management. The panel automatically handles content alignment, element spacing, and responsive behavior across different screen sizes and orientations.
Constructors
StackLayoutPanel()
Declaration
public StackLayoutPanel()
Fields
AllElementsEqualSizeProperty
Declaration
[Obsolete("The property is not relevant for this class.")]
public static RadProperty AllElementsEqualSizeProperty
Field Value
|
RadProperty
|
ChildrenForcedSizeProperty
Declaration
[Obsolete("The property is not relevant for this class.")]
public static RadProperty ChildrenForcedSizeProperty
Field Value
|
RadProperty
|
CollapseElementsOnResizeProperty
Declaration
[Obsolete("The property is not relevant for this class.")]
public static RadProperty CollapseElementsOnResizeProperty
Field Value
|
RadProperty
|
EqualChildrenHeightProperty
EqualChildrenWidthProperty
FlipMaxSizeDimensionsProperty
Declaration
[Obsolete("The property is not relevant for this class.")]
public static RadProperty FlipMaxSizeDimensionsProperty
Field Value
|
RadProperty
|
IsInStripModeProperty
Declaration
[Obsolete("The property is not relevant for this class.")]
public static RadProperty IsInStripModeProperty
Field Value
|
RadProperty
|
OrientationProperty
RowProperty
StackLayoutPanelLastStateKey
This constant is used internally.
Declaration
protected const long StackLayoutPanelLastStateKey = 68719476736L
Field Value
|
System.Int64
|
UseParentSizeAsAvailableSizeProperty
Declaration
[Obsolete("The property is not relevant for this class.")]
public static RadProperty UseParentSizeAsAvailableSizeProperty
Field Value
|
RadProperty
|
Properties
EqualChildrenHeight
Gets or sets a value indicating whether the elements have equal height.
Declaration
[RadPropertyDefaultValue("EqualChildrenHeight", typeof(StackLayoutPanel))]
public bool EqualChildrenHeight { get; set; }
Property Value
|
System.Boolean
|
EqualChildrenWidth
Gets or sets a value indicating whether the elements have equal width.
Declaration
[RadPropertyDefaultValue("EqualChildrenWidth", typeof(StackLayoutPanel))]
public bool EqualChildrenWidth { get; set; }
Property Value
|
System.Boolean
|
InvalidateChildrenOnChildChanged
Notifies all children when same child changes. Effectively redraws all children in the panel.
Declaration
public override bool InvalidateChildrenOnChildChanged { get; }
Property Value
|
System.Boolean
|
Overrides
Orientation
Gets or sets the elements orientation inside the stack layout. Possible values are horizontal and vertical.
Declaration
[RadPropertyDefaultValue("Orientation", typeof(StackLayoutPanel))]
public Orientation Orientation { get; set; }
Property Value
|
System.Windows.Forms.Orientation
|
Methods
ArrangeOverride(SizeF)
ArrangeOverride
Declaration
protected override SizeF ArrangeOverride(SizeF arrangeSize)
Parameters
|
System.Drawing.SizeF
arrangeSize
|
Returns
|
System.Drawing.SizeF
|
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF constraint)
Parameters
|
System.Drawing.SizeF
constraint
|
Returns
|
System.Drawing.SizeF
|