protected async void DeleteItem_Clicked(object sender, EventArgs e) { if (await DisplayAlert(title: $"Delete {detailsVm.Item.GetType().Name}", message: $"Are you sure you want to delete the {detailsVm.Item.GetType().Name}?", accept: "Yes", cancel: "No")) { await detailsVm.DeleteItemAsync().ConfigureAwait(false); Device.BeginInvokeOnMainThread(async() => await Navigation.PopAsync().ConfigureAwait(false)); } }