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);
        }
        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);
        }
 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);
 }