public static Altaxo.Gui.AltaxoMouseEventArgs ToAltaxo(MouseWheelEventArgs e, IInputElement positionReference) { var pos = e.GetPosition(positionReference); var result = new Altaxo.Gui.AltaxoMouseEventArgs { Button = AltaxoMouseButtons.None, Clicks = 0, Delta = e.Delta, X = pos.X, Y = pos.Y }; return(result); }
public static Altaxo.Gui.AltaxoMouseEventArgs ToAltaxo(MouseButtonEventArgs e, IInputElement positionReference) { var pos = e.GetPosition(positionReference); var result = new Altaxo.Gui.AltaxoMouseEventArgs { Button = ToAltaxo(e.ChangedButton), Clicks = e.ClickCount, Delta = 0, X = pos.X, Y = pos.Y }; return(result); }