Back to Devexpress

BaseDocument.ControlType Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-6ef8e9a9.md

latest2.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
public Type ControlType { get; set; }
vb
<DefaultValue(Nothing)>
Public Property ControlType As Type

Property Value

TypeDefaultDescription
Typenull

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.

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

BaseDocument Class

BaseDocument Members

DevExpress.XtraBars.Docking2010.Views Namespace