Getting Started Writing a Custom Activity
This topic applies to Windows Workflow Foundation 4 (WF4).
This sample demonstrates how to define a simple custom activity in XAML. The activity is given the name Rhyme
, and its logic is a sequence of three WriteLine activities.
To set up, build, and run the sample
Open the Simple.sln sample solution in Visual Studio 2010.
Build and run the solution.
![]() |
---|
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\CustomActivities\Composite\GettingStarted
|