Chapter 13 Quick Reference
To | Do This |
---|---|
Create a custom WF activity | Create a new class library project, and derive the new activity class from Activity (or CompositeActivity if you’re building a composite activity). |
Validate the activity properties | Provide a custom activity validator. Note validation can ignore activity state, return warnings, or elect to fail compilation by returning errors for specific conditions. Don’t forget you need to add the ActivityValidator attribute to your main activity class. |
Add a Toolbox bitmap | Insert an appropriate bitmap into your activity project. Set its Build Action property to Embedded Resource. Finally, add the ToolboxBitmapAttribute to your activity to actually load it. |
Tailor the appearance of your activity in the ... |
Get Microsoft® Windows® Workflow Foundation Step by Step 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.