From 4e4d0f5c58fe676a18f06c831d5e35aa43ee2d44 Mon Sep 17 00:00:00 2001 From: Karim El Jed Date: Mon, 20 Mar 2017 13:33:57 +0100 Subject: [PATCH] Fix missing RootFrame I used the Nuget package version 2.1.47. Not setting the root frame caused a NullReferenceException. --- .../WindowsUniversal/Sample.WindowsUniversal/MainPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/WindowsUniversal/Sample.WindowsUniversal/MainPage.xaml.cs b/Samples/WindowsUniversal/Sample.WindowsUniversal/MainPage.xaml.cs index 65ed547ae..29cbe5998 100644 --- a/Samples/WindowsUniversal/Sample.WindowsUniversal/MainPage.xaml.cs +++ b/Samples/WindowsUniversal/Sample.WindowsUniversal/MainPage.xaml.cs @@ -34,7 +34,7 @@ public MainPage() //Create a new instance of our scanner scanner = new MobileBarcodeScanner(this.Dispatcher); - scanner.Dispatcher = this.Dispatcher; + scanner.RootFrame = this.Frame; } private void buttonScanDefault_Click(object sender, RoutedEventArgs e)