Пример #1
0
 private void OnElementItemDragging(object sender, ElementItemDraggingEventArgs e)
 {
     e.Handled = true;
     RaiseEvent(new ElementItemDraggingEventArgs(ElementItemDraggingEvent, e.OriginalSource, e.HorizontalChange, e.VerticalChange, e.PositionX, e.PositionY));
 }
Пример #2
0
        // This method raises the DragStart event
        void RaiseDraggingEvent(ElementItem elementItem, double deltaX, double deltaY, double positionX, double positionY)
        {
            ElementItemDraggingEventArgs newEventArgs = new ElementItemDraggingEventArgs(ElementItem.DraggingEvent, elementItem, deltaX, deltaY, positionX, positionY);

            RaiseEvent(newEventArgs);
        }