NavigationPageBase.ControlName Property

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

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v20.2.dll

Declaration

[DefaultValue(null)]
public string ControlName { get; set; }
<DefaultValue(Nothing)>
Public Property ControlName As String

Property Value

Type Default Description
String

null

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

Remarks

You can associate a pre-customized page with a desired control by utilizing the ControlName and NavigationPageBase.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