ClassStackLayoutElement
Represent a stack layout element
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class StackLayoutElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElement
Derived Classes:
Implements:
Inherited Members
Constructors
StackLayoutElement()
Declaration
public StackLayoutElement()
Fields
ElementSpacingProperty
Declaration
public static RadProperty ElementSpacingProperty
Field Value
RightToLeftModeProperty
Declaration
public static RadProperty RightToLeftModeProperty
Field Value
Properties
Comparer
Gets or sets a comparer to be used for defining the order of the child elements.
Declaration
public IComparer<RadElement> Comparer { get; set; }
Property Value
IComparer<RadElement>
ElementSpacing
Gets or sets the element spacing between items.
Declaration
public int ElementSpacing { get; set; }
Property Value
The element spacing.
FitInAvailableSize
Gets or sets a value indicating whether to fit the available size.
Declaration
public bool FitInAvailableSize { get; set; }
Property Value
true if fit the available size; otherwise, false.
Orientation
Gets or sets the item orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
The orientation.
RightToLeftMode
Gets or sets the right to left mode.
Declaration
public StackLayoutElement.RightToLeftModes RightToLeftMode { get; set; }
Property Value
StackLayoutElement.RightToLeftModes
The right to left mode.
Methods
AlignRect(RadElement, RectangleF)
Aligns the rectangle according to orientation and element's alignment.
Declaration
protected virtual RectangleF AlignRect(RadElement element, RectangleF arrangeRect)
Parameters
element
The element.
arrangeRect
The arrange rect.
Returns
ArrangeElement(RadElement, RectangleF, RectangleF, SizeF)
Arranges the element.
Declaration
protected virtual void ArrangeElement(RadElement element, RectangleF clientRect, RectangleF finalRect, SizeF finalSize)
Parameters
element
The element.
clientRect
The client rect.
finalRect
The final rect.
finalSize
The final size.
ArrangeHorizontally(SizeF)
Arranges the items horizontally.
Declaration
protected virtual void ArrangeHorizontally(SizeF finalSize)
Parameters
finalSize
The final size.
ArrangeItemsHorizontaly(RectangleF, SizeF, float, float)
Arranges the items horizontaly.
Declaration
protected virtual void ArrangeItemsHorizontaly(RectangleF clientRect, SizeF finalSize, float stretchableWidth, float spacing)
Parameters
clientRect
The client rect.
finalSize
The final size.
stretchableWidth
Width of the stretchable.
spacing
The spacing.
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
ArrangeVertically(SizeF)
Arranges the items vertically.
Declaration
protected virtual void ArrangeVertically(SizeF finalSize)
Parameters
finalSize
The final size.
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.