Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseDocument.ControlType Property

Gets or sets the type of a control passed to the document as content.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(null)]
public Type ControlType { get; set; }

#Property Value

Type Default Description
Type null

The type of a control passed to the document as content.

#Remarks

The ControlType property allows you to assign a control as document content:

  1. Click the Assign Control button in the form designer.
  2. In the invoked window, open the drop-down ControlType property list. The drop-down displays UserControl / Form class descendants available in the solution.
  3. Select a control from the list.

Document Manager Designer - Assign Control

The assigned control type is used to initialize the control during Deferred Loading.

#Usage Notes

  • The ControlType property accepts Control class descendants with parameterless constructors.
  • The BaseView.QueryControl event has a higher priority than the ControlType property.
  • The ControlType property drop-down displays Form class descendants in MDI mode only.
See Also