private void playBtn_Click(object sender, RoutedEventArgs e) { GameWindow view = new GameWindow((DataContext as MainWindowViewModel).SelectedUser); view.Show(); }