Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Workflow TV - Lab Introduction to WF4: Exercise 4 - Dynamic Workflows with XAML

5 minutes, 51 seconds


Right click “Save as…”


In this exercise you will see how you can load a XAML file and create a dynamic activity from the XAML definition.  This allows you to load XAML at runtime and invoke it like you would do a script.

Intro To WF4 Hands On Lab (Visual Studio Gallery)
Intro To WF4 Hands On Lab (MSDN Code Gallery)

Lab Exercises


  • Exercise 1 - Hello Workflow (video)
  • Exercise 2 - Refactoring Workflow (video)
  • Exercise 3 - The CodeActivity (video)
  • Exercise 4 - Dynamic Workflows with XAML (video)
  • Exercise 5 – Testing Activities (video)
  • Exercise 6 – WorkflowApplication (video)
  • Exercise 7 – If/Else Logic (video)


Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • Mike Lawtonmalawto Go Horse!

    And at the end, after you've set your SayHello.xaml file properties -- you'll also want to change back Main in Program.cs:


      static void Main(string[] args)
                WorkflowInvoker.Invoke(new SayHelloInCode());

    From where it had been set in Task 4.2 to:


    static void Main(string[] args)
    static void Main(string[] args)

    I'm loving this series of videos and exercises... thanks!

  • Ron Jacobsrojacobs Ron Jacobs

    Actually you don't have to do this.  In Exercise 5 Task 6 we modify Main() to do something different.

Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.