async void NotifyInvalidScan(object sender, EventArgs e) { if (UserSettings.SoundEnabled == "True") { var assembly = typeof(App).GetTypeInfo().Assembly; Stream audioStream = assembly.GetManifestResourceStream("AssetTracking.Assets." + "buzzer.wav"); // Stream audioStream = assembly.GetManifestResourceStream("AssetTracking." + "success.wav"); var player = Plugin.SimpleAudioPlayer.CrossSimpleAudioPlayer.Current; player.Load(audioStream); player.Play(); } SaveResult.Text = "Invalid Scan"; SaveResult.BackgroundColor = Color.Red; await SaveResult.FadeTo(1); await SaveResult.TranslateTo(100, 0, 500, Easing.BounceOut); await SaveResult.TranslateTo(0, 0); await SaveResult.FadeTo(0, 1000); }