void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.pokerView = ((pokerGame.Views.pokerView)(target)); return; } this._contentLoaded = true; }
void ApplicationStartup(object sender, StartupEventArgs e) { MainWindow window = new MainWindow(); Views.pokerView poker = new Views.pokerView(); MainViewModel viewModel = new MainViewModel(); window.DataContext = viewModel; window.ShowDialog(); }