public FaceRecognitionActivityWindow()
        {
            faceTrackingViewer = new FaceTrackingViewer();
            InitializeComponent();

            var faceTrackingViewerBinding = new Binding("Kinect") { Source = sensorChooser };
            faceTrackingViewer.SetBinding(FaceTrackingViewer.KinectProperty, faceTrackingViewerBinding);

            sensorChooser.KinectChanged += SensorChooserOnKinectChanged;

            sensorChooser.Start();
        }
Esempio n. 2
0
        public FaceRecognitionActivityWindow()
        {
            faceTrackingViewer = new FaceTrackingViewer();
            InitializeComponent();

            var faceTrackingViewerBinding = new Binding("Kinect")
            {
                Source = sensorChooser
            };

            faceTrackingViewer.SetBinding(FaceTrackingViewer.KinectProperty, faceTrackingViewerBinding);

            sensorChooser.KinectChanged += SensorChooserOnKinectChanged;

            sensorChooser.Start();
        }