Reputation: 35637
How do I get (programatically) the current selection? As an Activity
instance, if possible?
Upvotes: 1
Views: 934
Reputation: 35637
Activity activity = workflowDesigner.Context.Items.GetValue<Selection>().
PrimarySelection.GetCurrentValue() as Activity;
Upvotes: 2