Activating a different view

Apr 27, 2010 at 3:19 PM

I would like to create an application that switches from a home screen, to a list of products, to the details of the selected product, to payment methods ...

If it were a web application it would just be redirects, but stil don't know WPF idioms. I am confused by the possibilies I see. One example could be switching data contexts and tryng to let data templates do the job.

This is my first WPF project and I am not familiar at all with WPF, having worked mostly in C, Java and JavaScript. Still I am here for the unit testing and like MVVM for its clean separation of UI and behaviour.

Apr 27, 2010 at 3:35 PM

Experimenting I have found that if I can define a codebehind handler and a command on the same object. One click would execute them both and I could use codebehind for navigation and commands for business logic, but it does not feel right.

Coordinator
Apr 27, 2010 at 4:18 PM

One good way is to use the Screen Conductor technique.  Rob Eisenberg gave a good demonstration of this in his MIX 10 presentation.