示例#1
0
 private void UnsubscribeFromDragDropEvents()
 {
     RadDragAndDropManager.RemoveDropQueryHandler(this.AssociatedObject, OnDropQuery);
     RadDragAndDropManager.RemoveDropInfoHandler(this.AssociatedObject, OnDropInfo);
     RadDragAndDropManager.RemoveDragQueryHandler(this.AssociatedObject, OnDragQuery);
     RadDragAndDropManager.RemoveDragInfoHandler(this.AssociatedObject, OnDragInfo);
 }
示例#2
0
 private void InitializeRowDragAndDrop(GridViewRow row)
 {
     if (row == null)
     {
         return;
     }
     row.SetValue(RadDragAndDropManager.AllowDragProperty, true);
     row.SetValue(RadDragAndDropManager.AllowDropProperty, true);
     RadDragAndDropManager.RemoveDropQueryHandler(row, OnGridViewRowDropQuery);
     RadDragAndDropManager.AddDropQueryHandler(row, OnGridViewRowDropQuery);
     RadDragAndDropManager.RemoveDropInfoHandler(row, OnGridViewRowDropInfo);
     RadDragAndDropManager.AddDropInfoHandler(row, OnGridViewRowDropInfo);
 }