public MainWindow() { InitializeComponent(); LCRGameViewModel ObjViewModel = new LCRGameViewModel(); LCRGameView ObjView = new LCRGameView(ObjViewModel); this.Content = ObjView; }
public LCRGameView(LCRGameViewModel ViewModel) { this.DataContext = ViewModel; InitializeComponent(); }