First Page of WizardControl blank when binding

I have just started a setup wizard for my project, and like the look of the WizardControl.

I have one frustrating issue, though. I'm using MVVM and binding like this:


<sf:WizardControl Name="WizardControl" ItemsSource="{Binding NavigationItems}"
                          SelectedWizardPage="{Binding NavigationItems.SelectedItem}">
            <sf:WizardControl.ItemContainerStyle>
                <Style TargetType="sf:WizardPage">
                    <Setter Property="Title" Value="{Binding Header}" />
                    <Setter Property="PageType" Value="Exterior" />
                </Style>
            </sf:WizardControl.ItemContainerStyle>
            <sf:WizardControl.ItemTemplate>
                <DataTemplate>
...
                </DataTemplate>
            </sf:WizardControl.ItemTemplate>
        </sf:WizardControl>

However many "NavigationItems" I add to my Viewmodel, I always get an additional blank page at the start of the Wizard and have to press "Next" before I get to my actual first page. Not a *huge* problem, but this is the first time the user sees my app and it doesn't look too professional.


Any ideas what's causing it? SF version 20.3.0.58 (updated to weekly release as was happening with previous versions), .Net Core 6 and 7.


Thanks in adcance!


1 Reply

KS Kayalvizhi Sivashanmugam Syncfusion Team December 8, 2022 02:19 PM UTC

Hi Adam,


We checked your reported query by creating simple demo using your code snippet. In this demo we have bind the selected item to WizardPage and it works fine. Can you check this demo and update us whether we missed any steps or scenario?




Attachment: WpfWizrdControl_3362e7dd.zip

Loader.
Up arrow icon