Class StackLayoutElementLite
Represents a stack layout element that arranges its children horizontally or vertically. Is also offers ElementSpacing property and respects the element's alignment.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class StackLayoutElementLite : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
StackLayoutElementLite()
Declaration
public StackLayoutElementLite()
Fields
ElementSpacingProperty
OrientationProperty
RightToLeftModeProperty
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
System.
|
ElementSpacing
Gets or sets the element spacing between items.
Declaration
[RadPropertyDefaultValue("ElementSpacing", typeof(StackLayoutElementLite))]
public int ElementSpacing { get; set; }
Property Value
System. The element spacing. |
Orientation
Gets or sets the item orientation.
Declaration
[RadPropertyDefaultValue("Orientation", typeof(StackLayoutElementLite))]
public Orientation Orientation { get; set; }
Property Value
System. The orientation. |
RightToLeftMode
Gets or sets the right to left mode.
Declaration
[RadPropertyDefaultValue("RightToLeftMode", typeof(StackLayoutElementLite))]
public StackLayoutElement.RightToLeftModes RightToLeftMode { get; set; }
Property Value
Stack 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
Rad The element. |
System. The arrange rect. |
Returns
System.
|
ArrangeElement(RadElement, RectangleF, RectangleF, SizeF)
Arranges the element.
Declaration
protected virtual void ArrangeElement(RadElement element, RectangleF clientRect, RectangleF finalRect, SizeF finalSize)
Parameters
Rad The element. |
System. The client rect. |
System. The final rect. |
System. The final size. |
ArrangeOverride(SizeF)
Arranges the Stack
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The size that is available for element. |
Returns
System. The rectangle occupied by the element. Usually |
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
Rad The element to measure. |
System. The available size. |
System. The desired size of its parent. |
MeasureOverride(SizeF)
Measures the space required by the Stack
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Stack |
Returns
System. 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.