You can capture frames while displaying a preview with C# only. Here's an example control that does it:
Basically you need to create a MediaCapture
object and associate it with a CaptureElement
control to display the preview. Then you can use CapturePhotoToStreamAsync()
to capture a frame to a stream of your selected encoding format and then have a go at it with your bar code reading code.