The Problem SolverWIndows Workflow Foundation
HomeShow ChangesEditPrintRecent ChangesSubscriptionsLost and FoundFind ReferencesRename

Search

History

29-1-2007 14:12:126-1-2007 20:36:296-1-2007 20:35:356-1-2007 20:33:326-1-2007 20:33:04

List all versions

Workflow Designer Loader
.
Summary

You never need to use this class for normal workflow operations. The only reason to use it is when you are rehosting the designer or need the WorkflowView SaveWorkflowImage function to create an image of the workflow.

When creating a subclass overrule the abstract PerformLoad function to load the workflow. Use the GetService function to retreive a IDesignerHost reference and use its Container object to add all the workflow activities to the designer surface. See the WorkflowUtils GetAllActivities function for an easy way to get a reference to all nested activities.

If you are using a StateWorkflow and want the same layout you need to add the .layout file in the OnEndLoad. Use the LoadDesignerLayout or LoadDesignerLayoutFromResource function to add the layout to the workflow.

See also RehostingTheWorkflowDesigner.

Wiki Usage

This wiki site is supposed to be a shared resource. As a shared resource everyone is encouraged to add new content or modify existing content!

Enjoy the WF wiki.

Recent Topics