Welcome to MSDN Blogs Sign in | Join | Help

Re-hosting the Workflow Desinger in Read-Only Mode

One of the questions, we get fomr customers is how can we re-host the designer in a Read-Only mode. Well, here you go:

 

For Re-hosting a Flowchart, we have:

 

this.wd = new WorkflowDesigner();

this.wd.Load(new Flowchart());

 

Going further, to make this Flowchart ReadOnly, add:

 

ReadOnlyState state = this.wd.Context.Items.GetValue<ReadOnlyState>();

state.IsReadOnly = true;

 

This should get the designer in the read-only mode so that no other activities can be added or none of the activity properties changed.

 

 

 

Published Monday, September 14, 2009 4:53 PM by kushals

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker