Great masters, I am here again in search of knowledge. I have a small application in Windows Phone 8.1, with a SQLite database, according to the screen below:
I would like that when selecting the item in the ListBox, and clicking the Delete button, a message is triggered asking if the user wants to delete this data. The code for the Delete button is as below:
private async void btnExcluir_Click(object sender, RoutedEventArgs e)
{
var excluir = ltbExibir.SelectedItem as Moto;
excluir.mot_nome = txtNomeMoto.Text;
excluir.mot_placa = txtPlacaMoto.Text;
await conexao.DeleteAsync(excluir);
}
And taking advantage of the opportunity, I would like to know how to insert title in the columns of the ListBox. I look forward to your valuable information.