Hello,
Welcome to Microsoft Q&A!
I want to do the same with the other list items where the same DetailPage will be opened but different information would be added.
The Navigate() method has three parameters, the first one is the page you want to navigate to, the second one is the information you want to pass to the next page and the third one is the animated transition. So you can add the information you want to pass to the DetailPage into the Navigate() method and then subsrcibe the OnNavigatedTo() event in your DetailPage to receive the parameter. For example:
MainPage.xaml.cs:
if (item.Name == resourceLoader.GetString("Sunflower/Text"))
{
Frame.Navigate(typeof(DetailPage), "Your information");
}
DetailPage.xaml.cs:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
string myInformation = e.Parameter as string;
}