The following example demonstrates how to hide certain property tabs on a Chart Wizard's page at runtime. This technique is useful to prevent the end-users from modifying particular chart settings.
C# |
using DevExpress.XtraCharts.Wizard;
private void button1_Click(object sender, EventArgs e) {
ChartWizard wizard = new ChartWizard(this.chartControl1);
WizardDataPage page = wizard.DataPage;
page.HiddenPageTabs.Add(DataPageTab.AutoCreatedSeries);
page.HiddenPageTabs.Add(DataPageTab.SeriesBinding);
wizard.ShowDialog();
}
|
VB |
Imports DevExpress.XtraCharts.Wizard;
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) _
Handles button1.Click
Dim wizard As New ChartWizard(Me.chartControl1)
Dim page As WizardDataPage = wizard.DataPage
page.HiddenPageTabs.Add(DataPageTab.AutoCreatedSeries)
page.HiddenPageTabs.Add(DataPageTab.SeriesBinding)
wizard.ShowDialog()
End Sub
|