Skip to main content

DXExpander.IsExpanded Property

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool IsExpanded { get; set; }

Property Value

Type Description
Boolean

true if the DXExpander is expanded; otherwise, false.

Remarks

When the IsExpanded property’s value is changed, the DXExpander plays the collapse (if the property has been set to false) or expand (if it has been set to true) animation. You can select a predefined animation style via the DXExpander.HorizontalExpand and DXExpander.VerticalExpand properties, or implement a custom animation using the DXExpander.ExpandStoryboard and DXExpander.CollapseStoryboard properties.

To learn more, see DXExpander.

Example

The following example demonstrates how to make visual elements expandable via the DXExpander.In this example, the DXExpander with a GroupBox inside it is placed into a standard Grid. The DXExpander can be expanded (or collapsed) by clicking the ellipsis button. This shows or hides the GroupBox.

<Application x:Class="DXExpander_CreatingAndUsing.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>

    </Application.Resources>
</Application>
See Also