Skip to main content

IMDIController.Cascade(BaseLayoutItem) Method

Displays the item or its children in a cascade.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

bool Cascade(
    BaseLayoutItem item
)

Parameters

Name Type Description
item BaseLayoutItem

A BaseLayoutItem object to be displayed in a cascade.

Returns

Type Description
Boolean

true, if the item is successfully displayed in cascade mode; otherwise, false.

Remarks

The following code sample displays the Group1 DocumentGroup’s children in a cascade:

<dx:ThemedWindow
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <Grid>
    <dxdo:DockLayoutManager x:Name="DockLayoutManager1">
      <dxdo:LayoutGroup Caption="LayoutRoot">
        <dxdo:DocumentGroup x:Name="Group1"  MDIStyle="MDI">
          <dxdo:DocumentPanel Caption="Error List" x:Name="Panel1" 
          MDISize="300,150" MDILocation="0,10" CaptionImage="{dx:DXImage 'GrayScaleImages/Actions/Cancel_16x16.png'}">
            <RichTextBox/>
          </dxdo:DocumentPanel>
            <dxdo:DocumentPanel Caption="Output" 
            MDISize="320,150" MDILocation="50,100" CaptionImage="{dx:DXImage 'GrayScaleImages/Export/ExportFile_16x16.png'}">
              <RichTextBox/>
            </dxdo:DocumentPanel>
            <dxdo:DocumentPanel Caption="Find Results"
            MDISize="300,150" MDILocation="100,150" CaptionImage="{dx:DXImage 'GrayScaleImages/Find/Find_16x16.png'}">
              <RichTextBox/>
            </dxdo:DocumentPanel>
          </dxdo:DocumentGroup>
        </dxdo:LayoutGroup>
    </dxdo:DockLayoutManager>
  </Grid>
</dx:ThemedWindow>
DockLayoutManager1.MDIController.Cascade(Group1);

See Also