Buongiorno a tutti...
Vorrei creare in una grid una matrice di TextBlock dinamicamente...
Il codice che ho usato è il seguente:
Il problema è...ora come lo aggiungo alla grid...nelle proprietà non c'è add o simili...codice:TextBlock[,] Matrice = new TextBlock[Globals.NumberCell, Globals.NumberCell]; for (int xx = 0; xx < Globals.NumberCell; xx++) { for (int yy = 0; yy < Globals.NumberCell; yy++) { Matrice[xx,yy].Height = 100; Matrice[xx,yy].Width = 100; Matrice[xx,yy].Name = "tb_" + xx + yy } }
è possibile fare una cosa del genere?!?
Grazie