Shouldnt Action.Target points to DataContext by default?

Jul 6, 2010 at 8: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.

Jul 6, 2010 at 1:49 PM
The full version of the framework does this. Let me see what it would take to make DataContext work as a fallback.
Jul 6, 2010 at 2: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.