O'Reilly logo

Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# by K. Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How Do I Build Custom Activities?

There are two approaches to building a custom activity. One approach uses composition and the second approach uses derivation.

The composition approach is a similar experience to authoring a workflow. We use the designer to drag, drop, and configure activities inside a new custom activity, and then package the custom activity into an assembly for use in other workflow projects. The composition approach is a quick and easy path to reusable workflow components.

In the derivation approach, we derive a new activity from the Activity class. We can also derive from descendants of the Activity class to inherit more functionality. We can customize the design view, validation, serialization, and code-generation pieces of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required