I'm following the example in the attached file here to drag and drop rows. In the PreviewDragDrop() event, the example casts e.DragInstance to a GridDataRowElement.
var rowElement = e.DragInstance as GridDataRowElement;
if (rowElement == null)
return;
However, I never get a GridDataRowElement, I always get a SnapshotDragItem, so rowElement is always null.
How do I get the row element?
var rowElement = e.DragInstance as GridDataRowElement;
if (rowElement == null)
return;
However, I never get a GridDataRowElement, I always get a SnapshotDragItem, so rowElement is always null.
How do I get the row element?