I want to detect the row/column index of a Grid control when Mouse click a certain slot on that Grid. How to do it?
I am development a Win8 Store application with C#/XAML.
Thanks!
I want to detect the row/column index of a Grid control when Mouse click a certain slot on that Grid. How to do it?
I am development a Win8 Store application with C#/XAML.
Thanks!
you should look into PointerPoint class
PointerPoint pt = e.GetCurrentPoint(gridView);
currentContactPt = pt.Position;
Declare an array and initialize it's elements with the rows/columns of grid. Then you can check in a loop which element's mouse click is triggered.