private void OnMouseMove(object sender, MouseEventArgs mouseEventArgs) { var position = mouseEventArgs.GetPosition(AssociatedObject); MousePosition = new Point(new XCoord(position.X), new YCoord(position.Y)); }
private void OnMouseLeave(object sender, MouseEventArgs mouseEventArgs) { MousePosition = new Point(new XCoord(-1), new YCoord(-1)); }