Rehosted Designer - Readonly View with Enabled PropertyInspectorView
-
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.
All Replies
-
Tuesday, August 07, 2012 7:37 AM
Hi,
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
http://blogs.msdn.com/b/tilovell/archive/2010/03/19/working-with-commands-in-a-workflow-designer-rehost-application.aspxFreeform Custom Activity Designers using ICompositeView (Part 4)
http://blogs.msdn.com/b/tilovell/archive/2010/01/06/freeform-custom-activity-designers-using-icompositeview-part-4.aspx- Marked As Answer by LeoTangModerator Saturday, August 11, 2012 9:11 AM

