开发者

Read RSS on Windows Phone 7 and Pass data to next Page

开发者 https://www.devze.com 2023-01-21 17:23 出处:网络
On Windows Phone 7: I want to read RSS feed with 3 different field: Title, Description-1, and Description-2. But I want to show only title and description-1 in main page as listbox.

On Windows Phone 7:

I want to read RSS feed with 3 different field: Title, Description-1, and Description-2. But I want to show only title and description-1 in main page as listbox.

开发者_C百科

When user click on each item then it goes to next page which just show title and description-2 field related to the item user clicked on it.

How do we do this?


passing data to a "subpage" is handled with the NavigationService class. As an example, you can do something like this, to push your rssdata to the page you want to show the information!

NavigationService.Navigate(new Uri(String.Format("/MySubpage.xaml?param={0}", rssdata), UriKind.Relative)); 

In your subpage in the OnNavigatedTo() method you can read the data and work with it.

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号