public void MeasurePeakValue() { if (_captureSession is null) { return; } var value = _captureSession.MeasurePeakValue(); SetValue(value); }