windows phone 7 - WP7 Grid Position -
i need on this, have 9x9 grid in wp7, gridlines. have character in each of grid "cell".
how retrieve position in grid using [,] or other means? can position through: grid[col, row]
i tried using this: char[,] grid = new char[numcolumnstoadd, numrowstoadd];
but didn't work.
thanks.
i recommend use grid cells , rows layout purposes , not track current row/cell. since doing this, track clicks on each control (e.g. label) via single event handler. then, check row or cell via:
object row = ((textblock)sender).getvalue(grid.rowproperty); object cell = ((textblock)sender).getvalue(grid.cellproperty);
Comments
Post a Comment