private void UnsubscribeFromDragDropEvents() { RadDragAndDropManager.RemoveDropQueryHandler(this.AssociatedObject, OnDropQuery); RadDragAndDropManager.RemoveDropInfoHandler(this.AssociatedObject, OnDropInfo); RadDragAndDropManager.RemoveDragQueryHandler(this.AssociatedObject, OnDragQuery); RadDragAndDropManager.RemoveDragInfoHandler(this.AssociatedObject, OnDragInfo); }
private void ItemsControl_Loaded(object sender, RoutedEventArgs e) { RadDragAndDropManager.RemoveDragQueryHandler(sender as DependencyObject, Video_DragQuery); RadDragAndDropManager.AddDragQueryHandler(sender as DependencyObject, Video_DragQuery); }