ClassRadExpander
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
RadExpander()
Initializes a new instance of the RadExpander class.
Declaration
public RadExpander()
Fields
ClickModeProperty
Identifies the ClickMode property.
Declaration
public static readonly DependencyProperty ClickModeProperty
Field Value
DependencyProperty
CollapsedEvent
Occurs when the ContentElement is Collapsed.
Declaration
public static readonly RoutedEvent CollapsedEvent
Field Value
RoutedEvent
ExpandDirectionProperty
Identifies the ExpandDirection property.
Declaration
public static readonly DependencyProperty ExpandDirectionProperty
Field Value
DependencyProperty
ExpandedEvent
Occurs when the ContentElement is Expanded.
Declaration
public static readonly RoutedEvent ExpandedEvent
Field Value
RoutedEvent
HeaderButtonStyleProperty
Identifies the HeaderButtonStyle property.
Declaration
public static readonly DependencyProperty HeaderButtonStyleProperty
Field Value
DependencyProperty
HeaderOrientationProperty
Identifies the HeaderOrientation property.
Declaration
public static readonly DependencyProperty HeaderOrientationProperty
Field Value
DependencyProperty
HorizontalHeaderAlignmentProperty
Identifies the HorizontalHeaderAlignment property.
Declaration
public static readonly DependencyProperty HorizontalHeaderAlignmentProperty
Field Value
DependencyProperty
IsExpandedProperty
Identifies the IsExpanded property.
Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
DependencyProperty
IsHeaderPressedProperty
Identifies the IsHeaderPressed property.
Declaration
public static readonly DependencyProperty IsHeaderPressedProperty
Field Value
DependencyProperty
IsMouseOverHeaderProperty
Identifies the IsMouseOver property.
Declaration
public static readonly DependencyProperty IsMouseOverHeaderProperty
Field Value
DependencyProperty
PreviewCollapsedEvent
Identifies the PreviewCollapsed property.
Declaration
public static readonly RoutedEvent PreviewCollapsedEvent
Field Value
RoutedEvent
PreviewExpandedEvent
Identifies the PreviewExpanded property.
Declaration
public static readonly RoutedEvent PreviewExpandedEvent
Field Value
RoutedEvent
VerticalHeaderAlignmentProperty
Identifies the VerticalHeaderAlignment property.
Declaration
public static readonly DependencyProperty VerticalHeaderAlignmentProperty
Field Value
DependencyProperty
Properties
ClickMode
Gets or sets when the content will expand. This is a dependency property.
Declaration
public ClickMode ClickMode { get; set; }
Property Value
ClickMode
ExpandDirection
Gets or sets the direction in which the content would expand. This is a dependency property.
Declaration
public ExpandDirection ExpandDirection { get; set; }
Property Value
HeaderButtonStyle
Gets or sets the style which will be used for the HeaderButton. This is a dependency property.
Declaration
public Style HeaderButtonStyle { get; set; }
Property Value
Style
HeaderOrientation
Gets or sets the orientation of the expand Header.
Declaration
public Orientation HeaderOrientation { get; }
Property Value
Orientation
HorizontalHeaderAlignment
Gets or sets the horizontal alignment of the expand Header.
Declaration
public HorizontalAlignment HorizontalHeaderAlignment { get; set; }
Property Value
HorizontalAlignment
IsExpanded
Gets or sets whether the content is expanded. This is a dependency property.
IsHeaderPressed
Gets the IsHeaderPressed property.
IsMouseOverHeader
Gets the IsMouseOver property.
VerticalHeaderAlignment
Gets or sets the horizontal alignment of the expand Header.
Declaration
public VerticalAlignment VerticalHeaderAlignment { get; set; }
Property Value
VerticalAlignment
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Events
Collapsed
Occurs when the content is Collapsed.
Declaration
public event RadRoutedEventHandler Collapsed
Event Value
Expanded
Occurs when the content Expanded.
Declaration
public event RadRoutedEventHandler Expanded
Event Value
PreviewCollapsed
Occurs when the content will be Collapsed. If the event handler set True for the Handled property then the content will not collapse.
Declaration
public event RadRoutedEventHandler PreviewCollapsed
Event Value
PreviewExpanded
Occurs when the content will be Expanded. If the event handler set True for the Handled property then the content will not expand.
Declaration
public event RadRoutedEventHandler PreviewExpanded
Event Value