public GamePage() { this.InitializeComponent(); _game = new GameViewModel(); this.DataContext = _game; }
public MainPage() { this.InitializeComponent(); _game = new GameViewModel(); // Refresh scores after each game completes _game.GameCompleted += (s) => { ReloadHistory(); }; this.GamePane.DataContext = _game; }