Skip to main content
A newer version of this page is available. .

DXExpander.VerticalExpand Property

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public VerticalExpandMode VerticalExpand { get; set; }

Property Value

Type Description
VerticalExpandMode

A VerticalExpandMode enumeration member specifying the vertical animation style.

Available values:

Name Description
None

The content is not expanded vertically.

FromTopToBottom

The content is expanded from top to bottom.

FromBottomToTop

The content is expanded from bottom to top.

FromCenterToEdge

The content is expanded from the center to edges.

Remarks

The DXExpander provides a number of predefined animation styles. The VerticalExpand property allows you to select the style of vertical animation. To specify the horizontal animation style, use the DXExpander.HorizontalExpand 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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the VerticalExpand property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also