public FaceRecognitionActivityWindow() { faceTrackingViewer = new FaceTrackingViewer(); InitializeComponent(); var faceTrackingViewerBinding = new Binding("Kinect") { Source = sensorChooser }; faceTrackingViewer.SetBinding(FaceTrackingViewer.KinectProperty, faceTrackingViewerBinding); sensorChooser.KinectChanged += SensorChooserOnKinectChanged; sensorChooser.Start(); }