Wednesday, August 01, 2012 2:35 PM
I wrote an application that re-hosts the Workflow 4 Designer (System.Activities.Presentation.WorkflowDesigner) as well as displays the PropertyInspectorView to allow for modification of activity parameters. What I would like to do is disable the designer view from modifications (can't drop new activities on it, reorder it, delete activities, etc.) but still leave the property view editable when the user highlights an activity. Basically I want to be able to deploy drawn but un-configured workflows, and have somebody else fill in the activity arguments.
Every solution I've tried disables the entire designer and property view. I've tried setting IsEnabled to false on the View as well as setting the ReadOnlyState.IsReadOnly to true.
Any ideas on how I can achieve this behavior? Thanks.
Tuesday, August 07, 2012 7:37 AM
I think the built-in IsEnabled and ReadOnlyState propery doesn't work here, since both designer view and property inspector view are serialize activity to workflow definition. You might be able achieve the same by customizing commands in workflow designer to disable delete activity, and you can hide the toolbox, then no activity available for dragging drop.
Working with Commands in a Workflow Designer Rehost Application
Freeform Custom Activity Designers using ICompositeView (Part 4)
- Marked As Answer by LeoTangModerator Saturday, August 11, 2012 9:11 AM