void On_ClickedScan(object sender, EventArgs eventArgs) { //TODO: Once moved to VM, this will be injected via IoC var scanService = new ScanService(); scanService.InitializeService(); scanService.OnScanComplete += _scanComplete; Xamarin.Forms.Device.BeginInvokeOnMainThread(() => { scannerReady.IsVisible = true; }); }