Back to Devexpress

DocumentManager.MdiParent Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-documentmanager-c3d63467.md

latest2.6 KB
Original Source

DocumentManager.MdiParent Property

Gets or sets the parent MDI form.

Namespace : DevExpress.XtraBars.Docking2010

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Behavior")]
public Form MdiParent { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Behavior")>
Public Property MdiParent As Form

Property Value

TypeDefaultDescription
Formnull

The parent MDI form.

|

Remarks

To allow the DocumentManager to create documents for child MDI forms, do the following.

  • Use a NativeMdiView or TabbedView.
  • Set the DocumentManager.MdiParent property to the parent MDI form. The DocumentManager component automatically enables the form’s IsMdiContainer property.

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

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.

xaf-how-to-create-information-panels/CS/EFCore/InfoPanelEF/InfoPanelEF.Win/LightStyleMainRibbonForm1.cs#L70

csharp
viewSitePanel.Visible = false;
documentManager.MdiParent = this;
barMdiChildrenListItem.Visibility = BarItemVisibility.Always;

See Also

DocumentManager Class

DocumentManager Members

DevExpress.XtraBars.Docking2010 Namespace