I have got a simple UI with Grids.
How to get specyfic grid abosolute possition to screen or main window.
I want to get grid and move mouse coursor to the center of them.
So I have a grid:
<Page...>
...
<Grid x:Name="grid"></Grid>
...
</Page>
Now I want use code behind to move mouse cursor to center of this grid:
Point p=new Point();
??? How to get possition of Grid to Screen?
InputSimulator.MoveMouseto(p.X,pY);