Question

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

Was it helpful?

Solution

Activity activity = workflowDesigner.Context.Items.GetValue<Selection>().
    PrimarySelection.GetCurrentValue() as Activity;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top