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