Question

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?

Was it helpful?

Solution

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
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top