I m working in a WPF MVVM Project and I am using one Wpf Window. In this window i have a space for one usercontrol and two buttons next and back. When i click the next button I want usercontrol1 to be replaced with usercontrol2. etc.
Asked
Active
Viewed 8,784 times
5
-
You need wizard functionality like this - [MVVM Wizard for WPF](https://stackoverflow.com/a/51804137/3601887) – lezhkin11 Aug 11 '18 at 22:12
2 Answers
5
Sounds like you're trying to create a wizard-style user interface.
This Code Project article may help. And right here is a good place for getting started too.

Community
- 1
- 1

Paul Sasik
- 79,492
- 20
- 149
- 189
1
You can have Wizard
user control which is binded to WizardModel
, In the Wizard
control put ContentPresenter
control, and bind it to WizardModel's WizardPage
property. And by changing that WizardPage
property, you can change wizard page from model.
Hope this helps, here used the same mechanism for changing views

Arsen Mkrtchyan
- 49,896
- 32
- 148
- 184
-
HI ArsenMkrt te example is very good in hv used it but , it hvn't follow the MVVM pattern fully becoz, they used ViewModel Datatemplate in View Bt i think it is against MVVM Pattern see in CoffeeWizardView.xaml