Skip to main content

NavigationPageBase.ControlTypeName Property

Gets or sets the type name of a control associated with this page.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(null)]
public string ControlTypeName { get; set; }

Property Value

Type Default Description
String null

A String value that is the type name of a control associated with this page.

Remarks

You can associate a pre-customized page with a desired control by utilizing the NavigationPageBase.ControlName and ControlTypeName properties. The first property specifies the name of the associated control, while the second one is the full control type name (includes the project and folders names).

navigationPage1.ControlName = "ucFramePage1";
navigationPage1.ControlTypeName = "SampleApp1.UserControls.ucFramePage1";
navigationPage2.ControlName = "ucFramePage2";
navigationPage2.ControlTypeName = "SampleApp1.UserControls.ucFramePage2";

On the form load event, call the NavigationFrame.AddPage method to supply navigation pages with their associated controls.

navigationFrame1.AddPage(new ucFramePage1());
navigationFrame1.AddPage(new ucFramePage2());
See Also