fix #243
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user