Beispiel #1
0
 protected override void OnMouseDown(MouseButtonEventArgs e)
 {
     base.OnMouseDown(e);
     Application.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         e.Source  = AdornedElement;
         e.Handled = false;
         AdornedElement.RaiseEvent(e);
     }));
 }
 protected override void OnMouseMove(MouseEventArgs e)
 {
     base.OnMouseMove(e);
     AdornedElement.RaiseEvent(e);
 }