Skip to main content
All docs
V25.1
  • 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.1.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