I'm trying to pass an ObservableCollection from one Frame to the next in a Windows universal app and this is how my OnNavigatedTo looks like:
protected async override void OnNavigatedTo(NavigationEventArgs e)
{
var temp = e.Parameter as ObservableCollection<Information>;
foreach (var item in temp)
{
//Do something here
}
}
Problem is everytime this gets called, temp takes NULL value I get an NullReferenceException. Any ideas?