private void DepthReader_FrameArrived(object sender, DepthFrameArrivedEventArgs e) { using (DepthFrame frame = e.FrameReference.AcquireFrame()) { if (frame != null) { Camera.Source = frame.Bitmap(); } } }