An Activity Designer is actually a surface of an activity in the workflow designer. We have already created a
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:
Create an Activity Designer:
As Activity Designer is built upon WPF, we need to add references to
WindowsBase. Add an Activity Designer item to the
ActivityLibraryproject and name it
Now, open the code sample for this book and just copy the following code to replace the default created code in
<sap:ActivityDesigner x:Class="ActivityLibrary.SendEmailActivityDesigner" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sap="clr-namespace:System...