O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

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

Creating an Activity Designer for the SendEmail activity

An Activity Designer is actually a surface of an activity in the workflow designer. We have already created a SendEmail to send an e-mail. In this task, we are going to create a designer (activity surface) for it. The final appearance will be like this:

Creating an Activity Designer for the SendEmail activity

Now,let's create it from scratch.

How to do it...

  1. Create an Activity Designer:

    As Activity Designer is built upon WPF, we need to add references to PresentationCore, PresentationFramework, and WindowsBase. Add an Activity Designer item to the ActivityLibrary project and name it SendEmailActivityDesigner.xaml.

    Now, open the code sample for this ...

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