1
How do I pass selected data from one screen to another in Xamarin?
I have a Listview that receives the information from an Api and I want the user to click on the item, view this information on another screen, below the click code
private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
{
if(e.SelectedItem !=null)
{
var selection = e.SelectedItem as UltimasNoticias;
//DisplayAlert("Você Selecionou", selection.Post_title, "ok");
await Navigation.PushAsync(new PostView());
#region DisabledSelectionHighlighting
// ((ListView)sender).SelectedItem = null;
#endregion
}
}
valeu helped thanks!
– Diego Lela