Skip to main content

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

NavigationPageBase.ControlName Property

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

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#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