Composes the collapsible panel header from its expand/collapse button, text, and separator line. Its orientation and alignment determine how these elements are arranged.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CollapsiblePanelHeaderElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementCollapsiblePanelHeaderElement...
Implements:
Inherited Members
Constructors
public CollapsiblePanelHeaderElement()
Fields
Identifies the expand direction supplied by the owning panel for header orientation and separator-line placement.
public static readonly RadProperty ExpandDirectionProperty
Identifies the alignment used for header children when the header is horizontal.
public static readonly RadProperty HorizontalHeaderAlignmentProperty
Identifies the owning panel's expanded state for header visual-state selection.
public static readonly RadProperty IsExpandedProperty
Identifies whether the header separator line is visible.
public static readonly RadProperty ShowHeaderLineProperty
Identifies the alignment used for header children when the header is vertical.
public static readonly RadProperty VericalHeaderAlignmentProperty
Properties
Gets the expand collapse button element.
public CollapsiblePanelButtonElement HeaderButtonElement { get; }
The expand collapse button element.
Gets the header line element.
public LinePrimitive HeaderLineElement { get; }
The header line element.
Gets the header text element.
public CollapsiblePanelTextElement HeaderTextElement { get; }
The header text element.
Gets or sets the horizontal header alignment.
public RadHorizontalAlignment HorizontalHeaderAlignment { get; set; }
The horizontal header alignment.
Gets or sets a value indicating whether to show a line primitive in the header.
public bool ShowHeaderLine { get; set; }
true if a line in the header is visible; otherwise, false.
Gets or sets the vertical header alignment.
public RadVerticalAlignment VerticalHeaderAlignment { get; set; }
The vertical header alignment.
Methods
Applies trailing-edge alignment and gives children with collapsed visibility empty bounds before arranging them.
protected override void ArrangeElement(RadElement element, RectangleF clientRect, RectangleF finalRect, SizeF finalSize)
The child element to arrange.
clientRectRectangleFThe client bounds used to position the child.
finalRectRectangleFThe proposed bounds from the stack layout.
finalSizeSizeFThe size allocated to the header.
Overrides:
Arranges the header children using its orientation and alignment, then positions the separator line for the panel's expand direction.
Creates the button element.
protected virtual CollapsiblePanelButtonElement CreateButtonElement()
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates the line element.
Creates the text element.
protected virtual CollapsiblePanelTextElement CreateTextElement()
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.
protected override void InitializeFields()
Overrides:
Raises the event.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs instance containing the event data.
Overrides: