private void MainCanvas_MouseMove(object sender, MouseEventArgs e) { System.Windows.Point position = Mouse.GetPosition(MainCanvas); MousePosition.Content = "Current Mouse Position: " + position.X + " " + position.Y; }
public static Point fromSystemPointToMyPoint(System.Windows.Point point) { return(new Point(point.X, point.Y)); }