private void SubscribeToDragDropEvents() { RadDragAndDropManager.AddDropQueryHandler(this.AssociatedObject, OnDropQuery); RadDragAndDropManager.AddDropInfoHandler(this.AssociatedObject, OnDropInfo); RadDragAndDropManager.AddDragQueryHandler(this.AssociatedObject, OnDragQuery); RadDragAndDropManager.AddDragInfoHandler(this.AssociatedObject, OnDragInfo); }
private void AssociatedObject_RowLoaded(object sender, RowLoadedEventArgs e) { if (AllowDrop) { RadDragAndDropManager.SetAllowDrop(e.Row, true); RadDragAndDropManager.AddDropQueryHandler(e.Row, OnDropQuery); RadDragAndDropManager.AddDropInfoHandler(e.Row, OnDropInfo); } }
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); }
/// <summary> /// Called after the behavior is attached to an AssociatedObject. /// </summary> protected override void OnAttached() { if (AllowDrop) { RadDragAndDropManager.SetAllowDrop(AssociatedObject, true); RadDragAndDropManager.AddDropQueryHandler(AssociatedObject, OnDropQuery); RadDragAndDropManager.AddDropInfoHandler(AssociatedObject, OnDropInfo); } }
private void InitializeTemplateDropTargetList(ListBox listBox) { RadDragAndDropManager.AddDropQueryHandler(listBox, DropTargetHelper.OnDropQuery); RadDragAndDropManager.AddDropInfoHandler(listBox, DropTargetHelper.OnDropInfo); }
/// <summary> /// Initializes a new instance of the <see cref="TimeSlotItemsControl"/> class. /// </summary> public TimeSlotItemsControl() { RadDragAndDropManager.AddDropInfoHandler(this, this.OnTimeSlotItemsControlDropInfo); RadDragAndDropManager.AddDropQueryHandler(this, this.OnTimeSlotItemsControlDropQuery); }