I took such a dictionary object.
Dictionary<string, string> newDictionary = new Dictionary<string, string>(); newDictionary.Add("time", itemObj.repTime); newDictionary.Add("message", itemObj.repMessage); Frame.Navigate(typeof(ViewDetails),newDictionary);
On the ViewDetails.xaml.cs page, I got data like this,
protected override void OnNavigatedTo(NavigationEventArgs e) { Dictionary<string, string> myDictionary = new Dictionary<string, string>(); myDictionary = e.Parameter as Dictionary<string, string>; timeTB.Text = myDictionary["time"].ToString(); messageTB.Text = myDictionary["message"].ToString(); }
Arjun kr
source share