标签: .net wpf selection workflow-foundation-4 rehosting
如何(以编程方式)获取当前选择?作为Activity实例,如果可能的话?
Activity
答案 0 :(得分:2)
Activity activity = workflowDesigner.Context.Items.GetValue<Selection>(). PrimarySelection.GetCurrentValue() as Activity;