Ejemplo n.º 1
0
 public DragBeginHelper(UIElement target, DragBeginHelper.DragStartedHandler dragStartedHandler)
 {
     this.dragStartedHandler = dragStartedHandler;
     target.AllowDrop        = true;
     target.AddHandler(Mouse.MouseDownEvent, (Delegate) new RoutedEventHandler(this.DragSourceControl_MouseDown), true);
     target.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(this.DragSourceControl_MouseLeftButtonUp);
     target.AddHandler(Mouse.MouseMoveEvent, (Delegate) new MouseEventHandler(this.DragSourceControl_MouseMove), true);
     target.MouseEnter += new MouseEventHandler(this.DragSourceControl_MouseEnter);
     target.MouseLeave += new MouseEventHandler(this.target_MouseLeave);
 }
Ejemplo n.º 2
0
 public void UpdateDragStartedHandler(DragBeginHelper.DragStartedHandler dragStartedHandler)
 {
     this.dragStartedHandler = dragStartedHandler;
 }