I have a Silverlight 4 app. In the app I have 2 DataGrids, I setup a MouseLeftButtonDown event on the DataGridRow to create a Label with info in it for a Drag'n'Drop event
void grid_LoadingRow( object sender, DataGridRowEventArgs args )
args.Row.AddHandler( MouseLeftButtonDownEvent, new MouseButtonEventHandler( ( s, e ) => tableColumn_MouseLeftButtonDown( (FrameworkElement)s, e ) ), true );
args.Row.AllowDrop = true;
args.Row.Drop += new DragEventHandler( tableColumn_Drop );
This works fine, I get a label that pops up when I hold the left mouse button down and I can drag this label anywhere I want.
As shown above, I also have an Drop event registered to grab the label if I drop it in the next door datagrid. The problem now is, that when I drop something on the other DataGrid's Rows, they don't fire the Drop event. If I drag a file from the file system and drop it there, it fires just perfectly.
The only thing I can come up with is that there must be some call to "register" a drag event. I've tried creating DragEnter and Drop events on everything above the Target DataGridRow, being the Datagrid, StackPanels, Grids, even LayoutRoot and I've tried dropping different items but they're still not firing. Only something coming in from outside the application registers