Welcome to Windows Workflow Foundation (WF)
Top Tasks :

WF Community Bloggers

Adding SmartTag Verbs to an Activity Designer

Here's a small sample on how to add a new Verb and another SmartTag option to your custom Activity in the Windows Workflow Designer. Adding a new context-menu option to your activity is fairly easy and intuitive: You just need to create a new instance of the ActivityDesignerVerb class when your custom ActivityDesigner-derived class in initialized and add it to the Verbs collection. Adding a new SmartTag option is a little bit more work. SmartTag options are also ActivityDesignerVerb instances; however, configured SmartTags are returned by the SmartTagVerb property as a readonly collection. To add a new one, you need to override this property and return you own collection instead. Here's a small code sample that adds a single new "Save Image" Verb to right-click menu as well as adding a SmartTag for it: Technorati: WF , Windows Workflow Foundation , ActivityDesigner Read More...
Published Thursday, September 14, 2006 10:49 AM by Commonality
Filed under:
Anonymous comments are disabled

<September 2006>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us