Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DropCheckEventArgs"/> class.
 /// </summary>
 /// <param name="routedEvent">The event that occured.</param>
 /// <param name="dragSource">The drag source.</param>
 /// <param name="dropDestinationItem">The destination of the drop.</param>
 /// <param name="permission">The permission token.</param>
 internal DropCheckEventArgs(RoutedEvent routedEvent, IDragSourceControl dragSource, object dropDestinationItem, PermissionToken permission)
     : base(routedEvent, dragSource)
 {
     DropDestinationItem = dropDestinationItem;
     Permission          = permission;
 }
        /// <summary>
        /// Invokes handlers of the <see cref="DropCheck"/> event.
        /// </summary>
        /// <param name="dropDestinationItem">The drop destination item.</param>
        /// <param name="permission">The drop permission token.</param>
        protected virtual void NotifyDropCheck(object dropDestinationItem, PermissionToken permission)
        {
            DropCheckEventArgs Args = new DropCheckEventArgs(DropCheckEvent, DragSource, dropDestinationItem, permission);

            RaiseEvent(Args);
        }