How to lock a hosted WorkflowDesigner from editing?
-
24-10-2019 - |
Question
Is it possible to add a locked WorkflowDesigner View to a WPF application? By locked I mean no change or editing whatsoever can be done to the Workflow Model.
Solution
Yes by changing the ReadOnlyState
var readOnlyState = _workflowDesigner.Context.Items.GetValue<ReadOnlyState>();
readOnlyState.IsReadOnly = true;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow