Category Archives: WF

WF4: ActivityDesigner – How to use WPF custom control in Activity Designer

1. Define the WPF custom control. 2. Refer the Current namespace in activityDesigner 3. Refer the Custom Control from Xaml <sap:ActivityDesigner x:Class=”WF4ActivityDesignerLibrary.ActivityDesigner.CustomControlDesigner” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221; xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221; xmlns:sap=”clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation” xmlns:sapv=”clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation” xmlns:local =”clr-namespace:WF4ActivityDesignerLibrary” mc:Ignorable=”d” xmlns:d=”http://schemas.microsoft.com/expression/blend/2008&#8243; xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006&#8243; d:DesignHeight=”67″ d:DesignWidth=”204″> Note: you can fire the events associated … Continue reading

Posted in ActivityDesigner, WF, WF4 | 10 Comments

WF4: ActivityDesigner – Container Activity designer

For designing a container designer like one where you can drag another activity, use the following code

Posted in ActivityDesigner, WF, WF4 | Leave a comment

WF4: Activity Designer – Icon

Change the ActivityDesigner Icon using

Posted in ActivityDesigner, WF, WF4 | Leave a comment

WF 4 – Custom Event handler Activity

In WF4, we can use either Bookmarks or Send/Receive Activities for event handling.Following example shows how to create a custom eventhandler using BookMark. public class FinishOrder : NativeActivity{protected override bool CanInduceIdle{get{return true;}} protected override void Execute(NativeActivityContext context){context.CreateBookmark(“FinishOrder”);}}

Posted in WF | Leave a comment