我有一個工具包中的多選列表框,我想在新頁面中顯示點擊項目。
如何從抽頭項目中提取每個項目?每個項目有4個領域。點擊事件和點擊項目
這是填充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;
}
}
。
謝謝。
你能寫嗎我是一個例子嗎?謝謝 – 2012-07-23 07:14:40
已添加鏈接。 – 2012-07-23 09:09:55
我沒有找到任何關係,我在你的例子中尋找什麼。 我想在發件箱和列表框中點擊項目的主體。 再次感謝s – 2012-07-23 09:32:22