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

EmptySpaceItem Class

Adds whitespace to a UI.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public class EmptySpaceItem :
    FixedItem

Remarks

An EmptySpaceItem provides whitespace, similar to the Margin property. But unlike a margin, an EmptySpaceItem object is not bound to a specific UI element. Structurally, an EmptySpaceItem is an independent rectangle with invisible bounds that has its own height and width.

To add an Empty Space Item via code, place a new instance of the EmptySpaceItem class into the DockLayoutManager.Items collection.

The figure below shows a selected EmptySpaceItem when in customization mode:

DXDocking EmptySpaceItem Selected

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

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.

Inheritance

Show 11 items
See Also