ClassStackLayoutElementLite
Represents a stack layout element that arranges its children horizontally or vertically. Is also offers ElementSpacing property and respects the element's alignment.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class StackLayoutElementLite : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementLite
Implements:
Inherited Members
Constructors
StackLayoutElementLite()
Declaration
public StackLayoutElementLite()
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.
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.
ArrangeOverride(SizeF)
Arranges the StackLayoutElementLite to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureElement(RadElement, ref SizeF, ref SizeF)
Measures the element.
Declaration
protected virtual void MeasureElement(RadElement element, ref SizeF availableSize, ref SizeF parentDesiredSize)
Parameters
element
The element to measure.
availableSize
The available size.
parentDesiredSize
The desired size of its parent.
MeasureOverride(SizeF)
Measures the space required by the StackLayoutElementLite
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the StackLayoutElementLite. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.