Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 private void ItemsControl_Loaded(object sender, RoutedEventArgs e)
 {
     RadDragAndDropManager.RemoveDragQueryHandler(sender as DependencyObject, Video_DragQuery);
     RadDragAndDropManager.AddDragQueryHandler(sender as DependencyObject, Video_DragQuery);
 }