How to get the selected activity in rehosted WorkflowDesigner
How do I get (programatically) the current selection? As an Activit开发者_如何学Goy
instance, if possible?
Activity activity = workflowDesigner.Context.Items.GetValue<Selection>().
PrimarySelection.GetCurrentValue() as Activity;
精彩评论