Hi Makoto,
By Using Mouse.GetPosition you are retrieving the position of the mouse relative to a specified element. Here the element is "this". The position of the mouse pointer is calculated relative to the specified element with the upper-left corner of element being the point of origin, 0,0. If in your case that is the Window, the position is client area (inside).
Best regards
Yves Zhang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Image may be NSFW.
Clik here to view.
