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