Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding the Arguments from a Rehosted workflow designer

I have a rehosted workflow. I'm creating a custom way users can input arguments. I want to remove the Arguments section from the WorkflowDesigner.View.

is that possible?enter image description here

Cheers

theHaggis

like image 467
theHaggis Avatar asked Jan 20 '12 17:01

theHaggis


1 Answers

After creating your WorkflowDesigner:

var designer = new WorkflowDesigner();

You can access various options, including the one where you show/hide bar items, using DesignerView, like this:

var designerView = designer.Context.Services.GetService<DesignerView>();

designerView.WorkflowShellBarItemVisibility =
    ShellBarItemVisibility.Imports |
    ShellBarItemVisibility.MiniMap |
    ShellBarItemVisibility.Variables |
    // ShellBarItemVisibility.Arguments | <-- Uncomment to show again
    ShellBarItemVisibility.Zoom;
like image 73
Joao Avatar answered Oct 04 '22 20:10

Joao