Display the position of the mouse pointer in Silverlight

private void MouseMoved(object sender, MouseEventArgs e) 
{ 
    Point pt = e. GetPosition(this); 
    lblInfo.Text = 
      String. Format(" You are at ({0}, {1}) in page coordinates", 
      pt. X, pt. Y) ; 
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.