Base element for stack-style page views that arrange page items along one edge of the content area.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadPageViewStackElement : RadPageViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadPageViewElementBaseRadPageViewElementRadPageViewStackElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a stack-style page-view element using the registered default position and selection mode.
public RadPageViewStackElement()
Fields
Identifies the item-selection-mode property; its default is Standard.
public static readonly RadProperty ItemSelectionModeProperty
Identifies the stack-position property; its default is Bottom.
public static readonly RadProperty StackPositionProperty
Properties
Gets or sets a value from the StackViewItemSelectionMode enum that determines how items in the stack view are selected and positioned.
public StackViewItemSelectionMode ItemSelectionMode { get; set; }
Uses this element as the parent for its page items.
protected override RadElement ItemsParent { get; }
Overrides:
Gets or sets a value from the StackViewPosition enum which determines the location of the items in relation to the content area.
public StackViewPosition StackPosition { get; set; }
Methods
Arranges stack items according to the selection mode and returns the remaining content-area rectangle.
protected override RectangleF ArrangeItems(RectangleF clientRect)
The rectangle available for the stack and content.
Returns:The rectangle assigned to the page content.
Overrides:
Assigns the stack-view content-area theme role and makes the header visible.
protected override void CreateChildElements()
Overrides:
Creates the page-item type used by stack views.
Derives item content or border orientation from the stack position. Left and right stacks rotate items vertically; top and bottom stacks keep them horizontal.
Calculates the content rectangle from the selected item, stack position, and selection mode.
protected virtual RectangleF GetContentAreaRectangle(RectangleF clientRect)
The client rectangle available to the stack layout.
Returns:The rectangle assigned to the page content.
Provides the starting offset used when arranging stack items; the base implementation starts at zero.
protected virtual float GetInitialItemsOffset(RectangleF clientRect)
The rectangle available for arranging stack items.
Returns:The initial offset along the stack edge.
Returns the page-item area between the header and footer.
public override RectangleF GetItemsRect()
The rectangle available for the stack items.
Overrides:
Sets stack items to use equal sizing.
protected override void InitializeFields()
Overrides:
Measures the content area and reduces the remaining size along the stack's content axis.
Measures stack items and content, adding their sizes along the stack axis and taking the larger cross-axis size.
Recomputes item orientation when the stack position changes and ItemContentOrientation is automatic.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Details of the property that changed.
Overrides:
Invalidates measurement and arrangement before applying the selected item through the base element.
protected override void SetSelectedItem(RadPageViewItem item)
The item to select.
Overrides: