I have set up a mainpage - detail page navigation using the Shell GoToAsync navigation
[RelayCommand]
public async void SelectionChanged() //Friend friend
{
if (SelectedItem == null) return;
Friend f = SelectedItem;
Console.WriteLine($"Selection made {f.FName} {f.LName}");
//navigate
var navigationParameter = new Dictionary<string, object>
{
{ "Friend", f }
};
await Shell.Current.GoToAsync(nameof(DetailPage), true, navigationParameter);
//remove selection highlight
SelectedItem = null;
}
This works. However, I am at a loss as to how to capture the return from the detailpage in my mainpage as I need to do a refresh of my CollectionView and underlying sqlite datastore.
I have followed the Gerald Versluis video at https://www.youtube.com/watch?v=pBh5SXVSwXw for the most part.
Any ideas?
Many thanks, G