摘要:
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 阅读全文
摘要:
先看看System.Activities.Hosting.SymbolResolver的定义:public sealed class SymbolResolver : IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, IEnumerable实现了IDictionary<string, Object> 接口,我们在工作流宿主中将需要在自定义Acti 阅读全文