Rehosted Designer - Readonly View with Enabled PropertyInspectorView
-
01 Agustus 2012 14:35
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.
Semua Balasan
-
07 Agustus 2012 7:37
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- Ditandai sebagai Jawaban oleh LeoTangModerator 11 Agustus 2012 9:11