Skip to main content

DXExpander.HorizontalExpand Property

Gets or sets the horizontal animation style. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public HorizontalExpandMode HorizontalExpand { get; set; }

Property Value

Type Description
HorizontalExpandMode

A HorizontalExpandMode enumeration member specifying the horizontal animation style.

Available values:

Name Description
None

The content is not expanded horizontally.

FromLeftToRight

The content is expanded from left to right.

FromRightToLeft

The content is expanded from right to left.

FromCenterToEdge

The content is expanded from the center to edges.

Remarks

The DXExpander provides a number of predefined animation styles. The HorizontalExpand property allows you to select the style of horizontal animation. To specify the vertical animation style, use the DXExpander.VerticalExpand property.

You can also implement a custom animation for the DXExpander. 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