Skip to main content

EmptySpaceItem Class

Adds whitespace to a UI. The whitespace is a rectangle object with invisible bounds that has its own height and width.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v23.2.dll

NuGet Package: DevExpress.Wpf.Docking


public class EmptySpaceItem :


Unlike the Margin property, an EmptySpaceItem object is not bound to a specific UI element.

The following code sample adds EmptySpaceItem to the application’s layout:

<Window ...
                <dxdo:LayoutGroup Orientation="Vertical">
                        <dxdo:LabelItem Caption="First Name"/>
                            <TextBox Text="Arnold"/>
                        <dxdo:LabelItem Caption="Last Name"/>
                            <TextBox Text="Schwartz"/>
                    <dxdo:EmptySpaceItem ItemHeight="20"/>
                        <dxdo:LabelItem Caption="Department"/>
                            <TextBox Text="Engineering"/>
                    <!-- ... -->

WPF DockLayoutManager - SeparatorItem

The image below demonstrates a selected EmptySpaceItem when Customization Mode is enabled.

DXDocking EmptySpaceItem Selected

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EmptySpaceItem class.


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.


Show 11 items
See Also