Shouldnt Action.Target points to DataContext by default?

Jul 6, 2010 at 7:01 AM

I am currently not sure if this is possible, but i think so.

Since in the most cases Action.Target points to the current DataContext why not use the DataContext of the Element which the message is attach to by default?

BTW: Nice work, i consider moving from Caliburn to Caliburn.Micro.

Coordinator
Jul 6, 2010 at 12:49 PM
The full version of the framework does this. Let me see what it would take to make DataContext work as a fallback.
Coordinator
Jul 6, 2010 at 1:01 PM
I made a simple fix to account for this. If no handler is found on the search, we will grab the DataContext and use that. Bear in mind, if you go dynamically changing the DataContext, this is going to break. But, this should work for the majority case.