This commit is contained in:
stubbfel
2013-10-15 15:18:27 +02:00
parent a083cbe1bc
commit 4fb2f5b06d

View File

@@ -27,6 +27,7 @@ namespace CampusAppWP8.Pages.Dev
using Microsoft.Devices;
using Microsoft.Phone.Controls;
using ZXing;
using System.Windows.Navigation;
/// <summary> QR Code scanner. </summary>
/// <remarks> fiedlchr, 15.10.2013. </remarks>
@@ -86,6 +87,11 @@ namespace CampusAppWP8.Pages.Dev
this.resultAppStoreKey = NavigationContext.QueryString[Constants.ParamQRResultKey];
}
if (e.NavigationMode == NavigationMode.Back)
{
this.captureThreadExit = false;
}
this.isInAutofocus = true;
this.cam = new PhotoCamera(CameraType.Primary);
this.cam.Initialized += new EventHandler<CameraOperationCompletedEventArgs>(this.Cam_Initialized);
@@ -93,6 +99,8 @@ namespace CampusAppWP8.Pages.Dev
this.bit = new WriteableBitmap((int)this.cam.PreviewResolution.Width, (int)this.cam.PreviewResolution.Height);
this.camViewBrush.SetSource(this.cam);
}
else
{