DataGrid with Message.Attached on MouseDoubleClickEvent

Topics: Actions & Coroutines, Bugs
Mar 24, 2014 at 4:00 PM
Edited Mar 24, 2014 at 4:03 PM
Hello ,

I need the ability to double click on a row on a DataGrid and perform some action in my VM .


<DataGrid cal:Message.Attach="[Event MouseDoubleClick] = [Action SomeAction($this)]">

this works fine and passes the current item when a row is double clicked , it also works if you have a SelectedItem and double click any other part of the DataGrid.

"$this - The actual ui element to which the action is attached. "

Why am i even getting the DataItem when double clicking and not an instance of DataGridRow ?

A answer to this , would also solve my problem since when receiving an Source other then DataGridRow .
i would igonre it.

thanks in advance .