Skip to main content

BaseDocument.Control Property

Gets the control displayed within the current document.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public Control Control { get; }

Property Value

Type Description

The control displayed within the current document.


You can provide the content for a Document via the Deferred Load mechanism or by using the BaseView.AddDocument method, which takes a Control object as a parameter.

Any Control or Form descendant can be used as a Document’s content. If you use a Control as the Document’s content, a new form that will display this control will be automatically created. The assigned control and new form can be accessed via the Control and BaseDocument.Form properties, respectively. If you use a Form as the Document’s content, this form is returned by both the Control and BaseDocument.Form properties.

See Also