/// <summary> /// Creates a new instance of the user interface /// </summary> /// <param name="service">The service that handles communication with the Kinect service</param> internal KinectUI(TrackRoamerBehaviorsService service) : this() { this.kinectUIService = service; KinectUI.DisplayWindowHeight = this.SkeletonCanvas.ActualHeight; KinectUI.DisplayWindowWidth = this.SkeletonCanvas.ActualWidth; this.DepthCB.IsChecked = false; // this.kinectUIService.IncludeDepth; this.SkeletalCB.IsChecked = this.kinectUIService.IncludeSkeletons; this.VideoCB.IsChecked = this.kinectUIService.IncludeVideo; this.VideoCBProcessed.IsChecked = true; this.Closed += this.KinectUI_Closed; }