Interaction logic for GameIntroductionPage.xaml
Inheritance: System.Windows.Controls.Page
コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 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);
 }