Hiding arguments from a created workflow designer

I have a repeat workflow. I am creating a custom way that users can enter arguments. I want to remove the Arguments section from WorkflowDesigner.View.

perhaps? enter image description here

Greetings

theHaggis

+4
source share
2 answers

After creating the WorkflowDesigner :

var designer = new WorkflowDesigner(); 

You can access various options, including those where you show / hide panel elements using DesignerView , for example:

 var designerView = designer.Context.Services.GetService<DesignerView>(); designerView.WorkflowShellBarItemVisibility = ShellBarItemVisibility.Imports | ShellBarItemVisibility.MiniMap | ShellBarItemVisibility.Variables | // ShellBarItemVisibility.Arguments | <-- Uncomment to show again ShellBarItemVisibility.Zoom; 
+7
source

Do not think it is possible. The WorkflowDesigner control and its presentation do not offer many properties or methods for managing their contents. You can use the WPF Inspector to find out what the constructor structure is.

enter image description here

0
source

Source: https://habr.com/ru/post/1392087/


All Articles