문제

I want to display some help text in a docked pane for WF4 Activities as the user works with them on the WorkflowDesigner design surface (View). The help text needs to change when the user selects a new Activity.

Is there an event or some other mechanism to be notified when the user selects an item (i.e. a workflow activity) in a rehosted WF4 WorkflowDesigner View?

도움이 되었습니까?

해결책

There's Selection available on designer's editing context. You just have to subscribe to its changes.

WorkflowDesigner.Context.Items.Subscribe<Selection>(selection => 
{
    // 'selection' contains various properties including currently selected objects
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top