skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadExpander

A HeaderContentControl used to create interactive Expand/Collapse control.

Inheritance
System.Object
RadExpander
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

[TelerikToolboxCategory("Containers")]
public class RadExpander : HeaderedContentControl, IThemable

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
System.Windows.DependencyProperty

CollapsedEvent

Occurs when the ContentElement is Collapsed.

Declaration
public static readonly RoutedEvent CollapsedEvent
Field Value
System.Windows.RoutedEvent

ExpandDirectionProperty

Identifies the ExpandDirection property.

Declaration
public static readonly DependencyProperty ExpandDirectionProperty
Field Value
System.Windows.DependencyProperty

ExpandedEvent

Occurs when the ContentElement is Expanded.

Declaration
public static readonly RoutedEvent ExpandedEvent
Field Value
System.Windows.RoutedEvent

HeaderButtonStyleProperty

Identifies the HeaderButtonStyle property.

Declaration
public static readonly DependencyProperty HeaderButtonStyleProperty
Field Value
System.Windows.DependencyProperty

HeaderOrientationProperty

Identifies the HeaderOrientation property.

Declaration
public static readonly DependencyProperty HeaderOrientationProperty
Field Value
System.Windows.DependencyProperty

HorizontalHeaderAlignmentProperty

Identifies the HorizontalHeaderAlignment property.

Declaration
public static readonly DependencyProperty HorizontalHeaderAlignmentProperty
Field Value
System.Windows.DependencyProperty

IsExpandedProperty

Identifies the IsExpanded property.

Declaration
public static readonly DependencyProperty IsExpandedProperty
Field Value
System.Windows.DependencyProperty

IsHeaderPressedProperty

Identifies the IsHeaderPressed property.

Declaration
public static readonly DependencyProperty IsHeaderPressedProperty
Field Value
System.Windows.DependencyProperty

IsMouseOverHeaderProperty

Identifies the IsMouseOver property.

Declaration
public static readonly DependencyProperty IsMouseOverHeaderProperty
Field Value
System.Windows.DependencyProperty

PreviewCollapsedEvent

Identifies the PreviewCollapsed property.

Declaration
public static readonly RoutedEvent PreviewCollapsedEvent
Field Value
System.Windows.RoutedEvent

PreviewExpandedEvent

Identifies the PreviewExpanded property.

Declaration
public static readonly RoutedEvent PreviewExpandedEvent
Field Value
System.Windows.RoutedEvent

ResultOrientationProperty

Identifies the ResultOrientation property.

Declaration
public static readonly DependencyProperty ResultOrientationProperty
Field Value
System.Windows.DependencyProperty

VerticalHeaderAlignmentProperty

Identifies the VerticalHeaderAlignment property.

Declaration
public static readonly DependencyProperty VerticalHeaderAlignmentProperty
Field Value
System.Windows.DependencyProperty

Properties

ClickMode

Gets or sets when the content will expand. This is a dependency property.

Declaration
public ClickMode ClickMode { get; set; }
Property Value
System.Windows.Controls.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
ExpandDirection

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
System.Windows.Style

HeaderOrientation

Gets or sets the orientation of the expand Header.

Declaration
public Orientation HeaderOrientation { get; }
Property Value
System.Windows.Controls.Orientation

HorizontalHeaderAlignment

Gets or sets the horizontal alignment of the expand Header.

Declaration
public HorizontalAlignment HorizontalHeaderAlignment { get; set; }
Property Value
System.Windows.HorizontalAlignment

IsExpanded

Gets or sets whether the content is expanded. This is a dependency property.

Declaration
public bool IsExpanded { get; set; }
Property Value
System.Boolean

IsHeaderPressed

Gets the IsHeaderPressed property.

Declaration
public bool IsHeaderPressed { get; set; }
Property Value
System.Boolean

IsMouseOverHeader

Gets the IsMouseOver property.

Declaration
public bool IsMouseOverHeader { get; }
Property Value
System.Boolean

ResultOrientation

Gets or sets the result header orientation.

Declaration
public Orientation ResultOrientation { get; set; }
Property Value
System.Windows.Controls.Orientation

The result orientation.

VerticalHeaderAlignment

Gets or sets the horizontal alignment of the expand Header.

Declaration
public VerticalAlignment VerticalHeaderAlignment { get; set; }
Property Value
System.Windows.VerticalAlignment

Methods

add_Collapsed(RadRoutedEventHandler)

Declaration
public void add_Collapsed(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

add_Expanded(RadRoutedEventHandler)

Declaration
public void add_Expanded(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

add_PreviewCollapsed(RadRoutedEventHandler)

Declaration
public void add_PreviewCollapsed(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

add_PreviewExpanded(RadRoutedEventHandler)

Declaration
public void add_PreviewExpanded(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate.

Declaration
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

remove_Collapsed(RadRoutedEventHandler)

Declaration
public void remove_Collapsed(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

remove_Expanded(RadRoutedEventHandler)

Declaration
public void remove_Expanded(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

remove_PreviewCollapsed(RadRoutedEventHandler)

Declaration
public void remove_PreviewCollapsed(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

remove_PreviewExpanded(RadRoutedEventHandler)

Declaration
public void remove_PreviewExpanded(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

Events

Collapsed

Occurs when the content is Collapsed.

Declaration
public event RadRoutedEventHandler Collapsed
Event Type
RadRoutedEventHandler

Expanded

Occurs when the content Expanded.

Declaration
public event RadRoutedEventHandler Expanded
Event Type
RadRoutedEventHandler

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 Type
RadRoutedEventHandler

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 Type
RadRoutedEventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.