Back to Devexpress

DocumentManager.ContainerControl Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-documentmanager-642c4647.md

latest3.8 KB
Original Source

DocumentManager.ContainerControl Property

Gets or sets a control that contains the current DocumentManager.

Namespace : DevExpress.XtraBars.Docking2010

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
ContainerControlnull

A System.Windows.Forms.ContainerControl that contains the current DocumentManager.

|

Remarks

Use the ContainerControl property to set a ContainerControl (such as a UserControl) for a DocumentManager. Using this feature, you can add as many Document Managers to your application as required.

If you use WindowsUIView with a start-up TileContainer that should support touch scrolling, clear the DocumentManager.MdiParent property and assign the parent form to the ContainerControl property instead.

csharp
documentManager1.ContainerControl = this;
vb
DocumentManager1.ContainerControl = Me

Note

WindowsUIView is designed to occupy an entire Form. Do not attempt to limit the DocumentManager’s size by wrapping it into a User Control (the ContainerControl property).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContainerControl 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.

winforms-create-widgetview-runtime/CS/WidgetViewExample/Form1.cs#L50

csharp
view.StackGroups.AddRange(new StackGroup[] { group1, group2 });
    dM.ContainerControl = this;
}

winforms-create-widgetview-runtime/VB/WidgetViewExample/Form1.vb#L50

vb
view.StackGroups.AddRange(New StackGroup() {group1, group2})
    dM.ContainerControl = Me
End Sub

See Also

DocumentManager Class

DocumentManager Members

DevExpress.XtraBars.Docking2010 Namespace