Пример #1
0
 private void SubscribeToDragDropEvents()
 {
     RadDragAndDropManager.AddDropQueryHandler(this.AssociatedObject, OnDropQuery);
     RadDragAndDropManager.AddDropInfoHandler(this.AssociatedObject, OnDropInfo);
     RadDragAndDropManager.AddDragQueryHandler(this.AssociatedObject, OnDragQuery);
     RadDragAndDropManager.AddDragInfoHandler(this.AssociatedObject, OnDragInfo);
 }
Пример #2
0
 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);
     }
 }
Пример #3
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);
 }
Пример #4
0
        /// <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);
            }
        }
Пример #5
0
 private void InitializeTemplateDropTargetList(ListBox listBox)
 {
     RadDragAndDropManager.AddDropQueryHandler(listBox, DropTargetHelper.OnDropQuery);
     RadDragAndDropManager.AddDropInfoHandler(listBox, DropTargetHelper.OnDropInfo);
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimeSlotItemsControl"/> class.
 /// </summary>
 public TimeSlotItemsControl()
 {
     RadDragAndDropManager.AddDropInfoHandler(this, this.OnTimeSlotItemsControlDropInfo);
     RadDragAndDropManager.AddDropQueryHandler(this, this.OnTimeSlotItemsControlDropQuery);
 }