Shalom experts, I'm just learning to program, I decided to try to make tic tac toe in order to familiarize myself with the algorithms, and the choice fell on WPF because The technology is relatively new, and I'm curious. Immediately I ran into a problem, I want to make three versions of the game, 3 in a row (3x3), 5 in a row (10x10) and 7 in a row (15x15). For this, I made a standard menu in the form and there are 3 elements. I try to make it so that when I clicked on the corresponding menu item, the window was redrawn and filled with the necessary number of buttons-cells of the game board with generated identifiers. Is it possible? Or do you need to make 3 separate windows in the designer for each type of game? Maybe I’m not right at all to imagine all this due to lack of experience and this can be done easier? Thanks in advance.

  • Taki shalom. Of course, you can, there are no problems. The easiest option is you can add items to Children . But it is better to master MVVM and do everything according to science. - VladD
  • one
    And we also have an excellent list of references , there is about WPF. - VladD

0