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

Derivation

Technically, there isn't an enormous difference between the composition and derivation approaches for building custom activities. When we built our GetUploadActivity earlier, the new activity did derive from the SequenceActivity class. Composition and derivation both use inheritance. Many of the topics we'll cover in this section we could also apply to GetUploadActivity.

Derivation versus composition is more a state of mind. In composition, we focus on arranging child activities inside a custom activity, and we build bigger activities

from smaller activities. With derivation, we focus on designing a single activity—its properties and execution model. The derivation approach is often the low‑level approach. Let's build a custom activity ...

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