I'm very new to WPF I'm doing a project using MVVM and Entity Framework and it was suggested not having any Click
tails event for a button in the code behind a window, for what reason? What is the alternative to replace the below event without breaking the suggested rules?
private void Button_Click(object sender, RoutedEventArgs e)
{
WindowMenuPrincipal wmp = new WindowMenuPrincipal();
wmp.ShowDialog();
}