Skip to main content

IMDIController.Restore(BaseLayoutItem) Method

Restores the document to its previous state.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

bool Restore(
    BaseLayoutItem document
)

Parameters

Name Type Description
document BaseLayoutItem

The BaseLayoutItem object that should be restored.

Returns

Type Description
Boolean

true, if the document is restored; otherwise, false.

Remarks

The following code sample restores the Panel1 DocumentPanel to the maximized state:

<Window ...
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager x:Name="DockLayoutManager1" >
    <dxdo:LayoutGroup>
      <dxdo:DocumentGroup MDIStyle="MDI">
        <dxdo:DocumentPanel x:Name="Panel1"/>
        <dxdo:DocumentPanel x:Name="Panel2"/>
      </dxdo:DocumentGroup>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
</Window>
DockLayoutManager1.MDIController.Maximize(Panel1);
DockLayoutManager1.MDIController.Minimize(Panel1);
DockLayoutManager1.MDIController.Restore(Panel1);
See Also