Louis Rhys
Louis Rhys

Reputation: 35637

How to get the selected activity in rehosted WorkflowDesigner

How do I get (programatically) the current selection? As an Activity instance, if possible?

Upvotes: 1

Views: 934

Answers (1)

Louis Rhys
Louis Rhys

Reputation: 35637

Activity activity = workflowDesigner.Context.Items.GetValue<Selection>().
    PrimarySelection.GetCurrentValue() as Activity;

Upvotes: 2

Related Questions