唯读工作流程设计师 [英] ReadOnly workflow designer

查看:51
本文介绍了唯读工作流程设计师的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我希望以只读模式显示工作流设计器,这样我就可以显示工作流而无需用户进行编辑.

我试图通过使用designer.Context.Services.GetService< DesignerView>().IsEnabled = false将IsEnabled设置设置为false来完成此任务.
这给了我我所需要的,除了滚动条也被禁用,因为这意味着用户看不到整个工作流程.

是否可以禁用设计器并仍启用滚动条?如果没有,则没有其他方法可以显示只读工作流设计器?

干杯

Matt

Hi,

I am looking to display the workflow designer in a read only mode so that I can show the workflow without the user being able to edit it.

I tried to accomplish this by setting the IsEnabled setting to false using designer.Context.Services.GetService<DesignerView>().IsEnabled = false;
This gave me what I was after except that the scroll bar was also disabled when meant that the user couldn't see the whole workflow.

Is there any way of disabling the designer and still having the scroll bar enabled? If not is there any other way of showing a read only workflow designer?

Cheers

Matt

推荐答案

在重新启动应用程序中加载设计器时可以添加此代码

designer.Context.Items.GetValue< ReadOnlyState>().IsReadOnly = true;

designer表示WorkflowDesigner

you can add this code when you load your designer in rehost app

designer.Context.Items.GetValue<ReadOnlyState>().IsReadOnly = true;

designer means WorkflowDesigner

 

 


这篇关于唯读工作流程设计师的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆