This project has moved and is read-only. For the latest updates, please go here.

Set Wizard pages with ItemsSource

Oct 19, 2011 at 1:56 PM



how I can fill the Wizard pages with the ItemsSource property, own WizardPage style and MVVM?




Oct 19, 2011 at 3:03 PM

Wizard pages are not meant to be created using the ItemsSource property.  Creating a syle is a simple as defining a new style that targets the WizardPage type.  The Waizard pages can easily databind to any data you have in your ViewModel.

Oct 20, 2011 at 8:07 AM

Oh... I have different number off pages. If the user choise the option xx on page 1 than the wizard have 3 pages. If the user choise option yy on page 1 than the wizard have 5 pages.

So, without ItemsSource I have to add all pages in xaml and override the next/previous navigation command?

Oct 20, 2011 at 2:56 PM

You will add all pages in XAML, and you can control the navigation by setting the WizardPage.NextPage or WizardPage.PreviousPage properties.  You can also control the ability to go next or previous by setting the WizardPage.CanSelectNextPage or WizardPage.CanSelectPreviousPage properties.

Oct 21, 2011 at 8:21 AM

Ok... Thanks!