Pregunta

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?

¿Fue útil?

Solución

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
});
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top