BaseLayoutItem.ItemHeight Property

Gets or sets the height for the specified BaseLayoutItem object. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public GridLength ItemHeight { get; set; }

Property Value

Type Description
GridLength

The height of the BaseLayoutItem object.

Remarks

If a LayoutPanel object is positioned within an AutoHideGroup, the panel’s ItemHeight property is not updated when an end user resizes the auto-hide group vertically at runtime.

When items are vertically lined up inside a LayoutGroup (the LayoutGroup.Orientation property is set to Vertical), you can use the ItemHeight property to change the height of individual items, while the item width (BaseLayoutItem.ItemWidth) cannot be changed in this case.

NOTE

Use the MDISize property to specify a DocumentPanel size.

The following code sample sets the TopGroup height to 150 pixels, the DocumentGroup width to 3/4 of the window width, and the Toolbox width to 1/4 of the window width (ItemWidth property):

<Window ...
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager>
    <dxdo:LayoutGroup x:Name="LayoutRoot" Orientation="Vertical">
      <dxdo:LayoutGroup x:Name="TopGroup" ItemHeight="150">
        <dxdo:LayoutPanel Caption="Toolbox" ItemWidth="*"/>
          <dxdo:DocumentGroup  ItemWidth="3*">
            <dxdo:DocumentPanel Caption="Document1">
              <!-- ... -->
            </dxdo:DocumentPanel>
            <dxdo:DocumentPanel Caption="Document2"/>
              <!-- ... -->
            </dxdo:DocumentGroup>
      </dxdo:LayoutGroup>
      <dxdo:TabbedGroup>
        <dxdo:LayoutPanel Caption="Solution Explorer"/>
        <dxdo:LayoutPanel Caption="Properties"/>
      </dxdo:TabbedGroup>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
<Window>

DockLayoutManager - ItemHeight and ItemWidth Properties

See Also