WizardGroup.Pages Property
Gets or sets the members of the ordered Wizard page’s collection which belong to the current group.
Namespace: DevExpress.XtraCharts.Wizard
Assembly: DevExpress.XtraCharts.v18.2.Wizard.dll
Declaration
Property Value
Type | Description |
---|---|
WizardPage[] | An array of WizardPage objects within the group. |
Remarks
Use this property to get access to the page at the specified place within the Wizard page group. An attempt to add or remove a page via the Pages method results in an exception.
To add or remove a page use the WizardGroup.RegisterPage and WizardGroup.UnregisterPage methods.
The Pages property can be used to change the order of pages within the group, as illustrated in the following example.
Example
The following example demonstrates how to change the order of pages in the Chart Wizard. It shifts the Appearance page to the last position within the Construction group, and may be practical for some users.
using System.Collections.Generic;
using DevExpress.XtraCharts.Wizard;
// ...
ChartWizard wizard = new ChartWizard(this.chartControl1);
// Create a typed list for a manipulation with Wizard pages.
List<WizardPage> pages = new List<WizardPage>(wizard.Groups[0].Pages);
// Remove the first page.
WizardPage appearancePage = pages[1];
pages.Remove(appearancePage);
// Append it to the list to become the last page.
pages.Add(appearancePage);
// Order the pages.
wizard.Groups[0].Pages = pages.ToArray();
wizard.ShowDialog();
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Pages property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.