Tap event and tapped item

I have a multiselect ListBox from the Toolkit and I want to show the tapped item in a new page. How can I extract every item from the tapped item? Every item has 4 fields.

This is the code that fills the ListBox:

void client_DownloadStringCompleted(object sender, 
                                    DownloadStringCompletedEventArgs e)
    if (e.Error == null)
        string xml = e.Result;
        XDocument data = XDocument.Parse(xml);
        var persons = from query in data.Descendants("Table")
        select new MailList
            Sender = (string)query.Element("FromUser"),
            Body = (string)query.Element("Message"),
            Date = ((DateTime)query.Element("mDate")).ToString("MM/yy"),
            Time = (string)query.Element("mTime"),
         EmailList.ItemsSource = persons;

I want to send to the other page the Sender and the Body field.



its very simple...

On the other page, create a public static variable called SelectedMailingList of type MailingList.

On tap, set the other page's SelectedMailingList property and then Navigate to the page.

have a look at this sample.. I use the same mechanism.. http://wp7pivottest.codeplex.com/

I would recommend passing Navigation Query Strings Parameters described in below links



Its easy to implement, I hope it helps

Need Your Help