;( si vede che ho iniziato da due giorni?!?! 
Vorrei sviluppare una app per windows phone...e in sostanza quello che vorrei creare è una matrice dinamica XX*YY di TextBlock (o di qualsiasi cosa di compatibile) e associare ad ogni elemento della matrice un evento click.
E ad esempio al click sulla cella [1,1] scivere 1-1 su un text se si clicca sulla cella [5,5] scrivere 5-5 su una text!
codice:
TextBlock[,] Matrice = new TextBlock[Globals.NumberCell, Globals.NumberCell];
for (int xx = 0; xx < Globals.NumberCell; xx++)
{
y = y + 100;
for (int yy = 0; yy < Globals.NumberCell; yy++)
{
x = x + 100;
Matrice[xx, yy] = new TextBlock();
Matrice[xx, yy].Name = "tb_" + xx + yy;
Matrice[xx, yy].Height = 100;
Matrice[xx, yy].Width = 100;
DataGrid.Children.Add(Matrice[xx, yy]);
}
}
Grazie!