Bubble events and action messages

Feb 11, 2011 at 7:32 PM

Hello all,

I have a canvas object, with multiple Path inside. I'd like to manage the MouseDown event on each of the Path. 

Is it possible to have only one Message.Attach declaration on the Canvas object, instead of one per Path child?

I've tried this:

Micro:Message.Attach="[Event Path.MouseDown] = [Action FieldMouseDown($eventArgs,$source)"

But I suspect this doesn't work because of the dot notation in the EVent part of the declaration.

Thanks in advance


Feb 11, 2011 at 11:02 PM

You are correct. The dot notation does not work. You would need to write a cutom trigger to accomplish this, but there's no reason that it isn't possible (assuming this is WPF that is...)

Feb 13, 2011 at 4:55 PM

A custom trigger? What do you mean? Using the Interactivity assembly?

Feb 13, 2011 at 4:56 PM


Feb 14, 2011 at 12:45 PM

Do you have any advices on how I should start to implement that? I'm a bit lost for now :)