Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Load From XAML

.NET Framework 4.6 and 4.5

This sample demonstrates how to dynamically load a XAML workflow without having to run the XamlBuildTask tool. Instead, the sample calls the Load method. The sample is a Windows Presentation Foundation (WPF) client application that loads XAML workflows using the ActivityXamlServices class and executes them. After they have been loaded using the ActivityXamlServices class, a DynamicActivity is returned that can be executed.

To use this sample

  1. Using Visual Studio 2010, open the LoadFromXAML.sln solution file.

  2. To build the solution, press CTRL+SHIFT+B.

  3. To run the solution, press CTRL+F5.

Important Note:
The samples may already be installed on your machine. Check for the following (default) directory before continuing.

<InstallDrive>:\WF_WCF_Samples

If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.

<InstallDrive>:\WF_WCF_Samples\WF\Basic\Built-InActivities\DynamicActivity\LoadFromXAML




Build Date:

2012-08-02
Show:
© 2015 Microsoft