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 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"> ...

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