public DragAndDropListBox()
        {
            this.AddHandler(RadDragAndDropManager.DragQueryEvent, new EventHandler <DragDropQueryEventArgs>(OnDragQuery));
            this.AddHandler(RadDragAndDropManager.DropQueryEvent, new EventHandler <DragDropQueryEventArgs>(OnDropQuery));
            this.AddHandler(RadDragAndDropManager.DropInfoEvent, new EventHandler <DragDropEventArgs>(OnDropInfo));
            this.AddHandler(RadDragAndDropManager.DragInfoEvent, new EventHandler <DragDropEventArgs>(OnDragInfo));

            RadDragAndDropManager.SetAllowDrop(this, true);
        }
 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);
     }
 }
Beispiel #3
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);
            }
        }