I favor mvvm and xaml but sometimes I want to create controls in c# dynamically. I am not sure if it is ok to that in xaml.cs code behind file or I can achieve it in viewmodel and bind it to xaml. Is this even a good architecture? what is the suggested way?
↧