In the menu of my program there are three MenuItem'a. How to use mvvm to make it so that when you click on any of them, an NxN field is built, consisting of buttons, where N is a certain number, for each MenuItem it has its own. Do you need models here or can you get away with view models? Will one view model be enough? I know that this can be done through RelayCommand, but how?

  • Pass N as a CommandParameter . - user227049
  • Menu Items, buttons - these are all UIs, so handle the interaction between them in View - Bulson
  • @Bulson can paint everything in more detail? - Draktharon

0