// important because the UWP camera stream automatically shuts down when a window is minimized private async void Current_VisibilityChanged(object sender, Windows.UI.Core.VisibilityChangedEventArgs args) { if (args.Visible == false) { if (_anylineScanView != null) { await _anylineScanView.StopCameraAsync(); } } if (args.Visible == true) { _anylineScanView?.StartCamera(); } }