RadExpander
Represents a collapsible content control that can expand and collapse to reveal or hide its content.
The RadExpander class derives from HeaderedContentControl and implements the IThemable interface.
It provides features for handling expansion and collapsing events, customizing the appearance of the header and button,
and managing the visual states corresponding to the various expansion directions.
The IsExpanded property determines whether the content is currently displayed.
The control also includes properties for various header alignments, orientations, and styles, as well as events that notify
when the content is expanded or collapsed.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadExpander : HeaderedContentControl
Inheritance: objectRadExpander
Constructors
Initializes a new instance of the RadExpander class.
public RadExpander()
Fields
ClickModeProperty
DependencyProperty
Identifies the ClickMode property.
public static readonly DependencyProperty ClickModeProperty
CollapsedEvent
RoutedEvent
Occurs when the ContentElement is Collapsed.
public static readonly RoutedEvent CollapsedEvent
ExpandDirectionProperty
DependencyProperty
Identifies the ExpandDirection property.
public static readonly DependencyProperty ExpandDirectionProperty
ExpandedEvent
RoutedEvent
Occurs when the ContentElement is Expanded.
public static readonly RoutedEvent ExpandedEvent
HeaderButtonStyleProperty
DependencyProperty
Identifies the HeaderButtonStyle property.
public static readonly DependencyProperty HeaderButtonStyleProperty
HeaderOrientationProperty
DependencyProperty
Identifies the HeaderOrientation property.
public static readonly DependencyProperty HeaderOrientationProperty
HorizontalHeaderAlignmentProperty
DependencyProperty
Identifies the HorizontalHeaderAlignment property.
public static readonly DependencyProperty HorizontalHeaderAlignmentProperty
IsExpandedProperty
DependencyProperty
Identifies the IsExpanded property.
public static readonly DependencyProperty IsExpandedProperty
IsHeaderPressedProperty
DependencyProperty
Identifies the IsHeaderPressed property.
public static readonly DependencyProperty IsHeaderPressedProperty
IsMouseOverHeaderProperty
DependencyProperty
Identifies the IsMouseOver property.
public static readonly DependencyProperty IsMouseOverHeaderProperty
PreviewCollapsedEvent
RoutedEvent
Identifies the PreviewCollapsed property.
public static readonly RoutedEvent PreviewCollapsedEvent
PreviewExpandedEvent
RoutedEvent
Identifies the PreviewExpanded property.
public static readonly RoutedEvent PreviewExpandedEvent
VerticalHeaderAlignmentProperty
DependencyProperty
Identifies the VerticalHeaderAlignment property.
public static readonly DependencyProperty VerticalHeaderAlignmentProperty
Properties
ClickMode
ClickMode
Gets or sets when the content will expand. This is a dependency property.
public ClickMode ClickMode { get; set; }
Gets or sets the direction in which the content would expand. This is a dependency property.
public ExpandDirection ExpandDirection { get; set; }
HeaderButtonStyle
Style
Gets or sets the style which will be used for the HeaderButton. This is a dependency property.
public Style HeaderButtonStyle { get; set; }
HeaderOrientation
Orientation
Gets or sets the orientation of the expand Header.
public Orientation HeaderOrientation { get; }
HorizontalHeaderAlignment
HorizontalAlignment
Gets or sets the horizontal alignment of the expand Header.
public HorizontalAlignment HorizontalHeaderAlignment { get; set; }
Gets or sets whether the content is expanded. This is a dependency property.
public bool IsExpanded { get; set; }
Gets the IsHeaderPressed property.
public bool IsHeaderPressed { get; set; }
Gets the IsMouseOver property.
public bool IsMouseOverHeader { get; }
VerticalHeaderAlignment
VerticalAlignment
Gets or sets the horizontal alignment of the expand Header.
public VerticalAlignment VerticalHeaderAlignment { get; set; }
Methods
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Events
Occurs when the content is Collapsed.
public event RadRoutedEventHandler Collapsed
Occurs when the content Expanded.
public event RadRoutedEventHandler Expanded
Occurs when the content will be Collapsed. If the event handler set True for the Handled property then the content will not collapse.
public event RadRoutedEventHandler PreviewCollapsed
Occurs when the content will be Expanded. If the event handler set True for the Handled property then the content will not expand.
public event RadRoutedEventHandler PreviewExpanded