void GameButton_Click(object sender, System.Windows.RoutedEventArgs e) { GameInformationModel gameInformationModel = (sender as KinectTileButton).Tag as GameInformationModel; GameIntroductionPage gameIntroductionPage = new GameIntroductionPage(gameInformationModel); this.NavigationService.Navigate(gameIntroductionPage); }
public GamePage(GameIntroductionPage gameIntroduction) { this.gameIntroduction = gameIntroduction; InitializeComponent(); ActiveUserDetector activeUserDetector = (ActiveUserDetector)this.Resources["ActiveUserDetector"]; activeUserDetector.RegisterCallbackToSensor(KinectState.Instance.CurrentKinectSensor); Binding myBinding = new Binding("ActiveUserCount"); myBinding.Source = activeUserDetector; this.SetBinding(this.ActiveUserCount, myBinding); }