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

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

这样在设计器中就不允许修改工作流定义了

参考:http://blogs.msdn.com/b/kushals/archive/2009/09/14/re-hosting-the-workflow-desinger-in-read-only-mode.aspx

posted on 2011-04-23 19:05  毁灭公爵  阅读(278)  评论(0编辑  收藏  举报