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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -