locked
Workflow to control wizard steps in WPF application RRS feed

  • Question

  • Hi. I want to use a flow chart workflow to sequence the steps of my WPF wizard application. I can't find the activities I think I'd need to support that though.

    My approach would be to use workflow activities to display pages in the wizard, once the page has been displayed, the workflow would yield control to my WPF app. When the next/previous button has been clicked I'd raise an event and send that to the workflow that would respond appropriately displaying the next page.

    I'd appreciate any pointers how I could achieve this.

    Thanks!


    Myles Jeffery | Office365 MVP | Thinkscape | SharePoint Online File Migration Tool
    Sunday, June 19, 2011 5:18 PM

Answers

  • The Introduction to State Machine Hands On Lab has a good example of a WPF app written with Model-View-ViewModel architecture that uses a Workflow to direct the appplication.  It is not a wizard but you could easily implement a Wizard using the same pattern.

     


    Sr. Program Manager, AppFabric Development Platform (WF/WCF) http://blogs.msdn.com/rjacobs http://www.twitter.com/ronljacobs
    • Marked as answer by Andrew_Zhu Friday, July 8, 2011 3:31 AM
    Friday, June 24, 2011 5:35 PM

All replies

  • Hi, Myles

    ->"use a flow chart workflow to sequence the steps of my WPF wizard application."
    I don't think workflow is suitable in this scenario. You can write .net code to do it directly.

    Regards

     


    MSDN Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
    Microsoft Windows Workflow Foundation 4.0 Cookbook
    Friday, June 24, 2011 2:00 AM
  • The Introduction to State Machine Hands On Lab has a good example of a WPF app written with Model-View-ViewModel architecture that uses a Workflow to direct the appplication.  It is not a wizard but you could easily implement a Wizard using the same pattern.

     


    Sr. Program Manager, AppFabric Development Platform (WF/WCF) http://blogs.msdn.com/rjacobs http://www.twitter.com/ronljacobs
    • Marked as answer by Andrew_Zhu Friday, July 8, 2011 3:31 AM
    Friday, June 24, 2011 5:35 PM