Esempio n. 1
0
        private void OnMouseMove(object sender, MouseEventArgs mouseEventArgs)
        {
            var position = mouseEventArgs.GetPosition(AssociatedObject);

            MousePosition = new Point(new XCoord(position.X), new YCoord(position.Y));
        }
Esempio n. 2
0
 private void OnMouseLeave(object sender, MouseEventArgs mouseEventArgs)
 {
     MousePosition = new Point(new XCoord(-1), new YCoord(-1));
 }