0
I have this class that fills the values in listview.
public Lista()
{
this.InitializeComponent();
carregaLista();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
public async void carregaLista()
{
var local = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "hinos.sqlite");
SQLiteAsyncConnection con = new SQLiteAsyncConnection(local, SQLiteOpenFlags.Create | SQLiteOpenFlags.ReadWrite);
listaHinos.ItemsSource = await con.Table<hinos>().ToListAsync();
}
public void listaHinos_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Frame.Navigate(typeof(hinoDetail), listaHinos);
}
The intention is to click on the item and detail it on the other page
public void listaHinos_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Frame.Navigate(typeof(hinoDetail), listaHinos);
}
The code is working, I do not know if I passed wrong, I would like to access the values of the listview selected on the other page.