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

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

            sensorChooser.KinectChanged += SensorChooserOnKinectChanged;

            sensorChooser.Start();
        }
Пример #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();
        }