I am writing a Sudoku application in c# and WPF. I got the grids with my Textboxes so far, but now i want to fill it with a Array of Arrays ([][]).
For my first tests i found a way to do this manually. XAML:
<TextBox> Text="{Binding Path=Testarr[0][0]}" Name="testbox"></TextBox>
and in my xaml.cs:
testbox.DataContext = this;
So now my Textbox show the value which is initialized in Testarr[0][0].
For my Sudoku i have 81 textboxes, and i don´t want to initialize all of them manually, is there a way to do it simple?