Articles in this section

How to customize the title of the Wizard Page in Wizard Control?

The title text of the Wizard Page in Wizard Control can be customized by retrieving the title from the page template. The following code illustrates the same.

 

MainWindow.xaml

<syncfusion:WizardControl Name="WizardControl" Loaded="WizardControl_Loaded">

 

            <syncfusion:WizardPage Title="Wizard Page1" x:Name="wizard1"/>

 

            <syncfusion:WizardPage Title="Wizard Page2" x:Name="wizard2"/>

 

            <syncfusion:WizardPage Title="Wizard Page3" x:Name="wizard3"/>

 

</syncfusion:WizardControl>

 

MainWindow.xaml.cs

private void WizardControl_Loaded(object sender, RoutedEventArgs e)

{

    ChangeFontSize();

}

 

private void ChangeFontSize()

{

    foreach(WizardPage page in WizardControl.Items)

    {

        TextBlock text = page.Template.FindName("title", page) as TextBlock;

 

        if (text != null)

         {

            text.FontSize = 20;

            text.Foreground = new SolidColorBrush(Colors.Red);

         }

}

}

 

 

Wizard Control

 

https://www.syncfusion.com/downloads/support/directtrac/general/ze/WizardControl290160120

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied