Bubble events and action messages

Feb 11, 2011 at 6: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 10: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 3:55 PM

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

Feb 13, 2011 at 3:56 PM


Feb 14, 2011 at 11:45 AM

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