Creating an Activity Designer for theMySquence activity

We have already created a MySequence activity in a previous task. In this task, we are going to create a designer for it.

How to do it...

  1. Create an Activity Designer:

    Add an Activity Designer item to the ActivityLibrary project and name it MySequenceDesigner.xaml. Use the following code to replace the default generated code:

    <sap:ActivityDesigner x:Class="ActivityLibrary.MySequenceDesigner" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation" xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"> ...

Get Microsoft Windows Workflow Foundation 4.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.