Example #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);
 }
Example #2
0
        /// <summary>
        /// Called after the behavior is attached to an AssociatedObject.
        /// </summary>
        protected override void OnAttached()
        {
            if (AllowDrag)
            {
                RadDragAndDropManager.SetAllowDrag(AssociatedObject, true);

                RadDragAndDropManager.AddDragQueryHandler(AssociatedObject, OnDragQuery);
                RadDragAndDropManager.AddDragInfoHandler(AssociatedObject, OnDragInfo);
            }
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppointmentItem"/> class.
 /// </summary>
 public AppointmentItem()
 {
     RadDragAndDropManager.AddDragInfoHandler(this, this.OnAppointmentItemDragInfo);
 }