|
protected override void ProcessOnDragOver(DragEventArgs args, RowColumnIndex rowColumnIndex)
{
if (args.Data.GetDataPresent("ListViewRecords"))
draggingRecords = args.Data.GetData("ListViewRecords") as ObservableCollection<object>;
else
draggingRecords = args.Data.GetData("Records") as ObservableCollection<object>;
if (draggingRecords == null)
return;
//To get the dropping position of the record
var dropPosition = GetDropPosition(args, rowColumnIndex, draggingRecords);
//To Show the draggable popup with the DropAbove/DropBelow message
ShowDragDropPopup(dropPosition, draggingRecords, args);
//To Show the up and down indicators while dragging the row
if (this.DataGrid.AllowDrop)
ShowDragIndicators(dropPosition, rowColumnIndex, args);
args.Handled = true;
} |