I have a XAML c# store app with a Canvas and many Grid dynamically placed.I used the Grid.SetValue(canvas.leftproperty) to place the Grids and this works fine.But when I use the ManipulationDelta to allow dragging the Grids and then get the Grid.GetValue
I'm not seeing the correct x and y.Please advice the best way to get the correct x and y at any time.
If you're moving via the RenderTransform in the ManipulationDelta then that won't affect the layout coordinates set with Grid.Left and Top. You can find the rendered location with VisualTreeHelper.FindElementsInHostCoordinates
Marked as answer byprasvenkFriday, May 16, 2014 9:13 PM
If you're moving via the RenderTransform in the ManipulationDelta then that won't affect the layout coordinates set with Grid.Left and Top. You can find the rendered location with VisualTreeHelper.FindElementsInHostCoordinates
Marked as answer byprasvenkFriday, May 16, 2014 9:13 PM
This seems to work.but at random times the Grids reported by
FindElementsInHostCoordinates are not correct. When I get this failure consistently I will get back to you.