Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of how to implement local database in your Xamarin.Forms applications - http://julianocustodio.com/litedb
private async void List_Selected(object sender, SelectedItemChangedEventArgs e)
{
var action = await DisplayActionSheet("Atenção", "Não", "Sim", "Deletar ?");
if (action == "Sim")
{
var customer = e.SelectedItem as Customer;
Customers.Delete(customer?.Id);
ListCustomers.ItemsSource = Customers.FindAll();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment