Exemplo n.º 1
0
        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);
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
            }
        }