Hello Chris nice sample for RSS Feed . Works fine with windows mobile 10 ! and i just have some question about change the feed photos for each one separate and can i change the amount of feed show in the RSS news feed section ? I mean more feeds , and another question is there anyway to have photos in the News Items Section ? i mean its just showing the Title of the RSS feed and there is no photo beside it . it will be so cool to have photos there and an option to change amount of feeds that showing in news items section , and is there anyway to add search option in the app i mean search some website RSS feed , i want to make an app for some website that use wordpress and that would be nice to answer my question , i already used wordpress starter pack with that plugin but now work actually program stuck even in debug mode , so i try to use this one for that , im waiting for ur answer here is my email address if is necessary firstname.lastname@example.org
Thanks for replying my previous question here, so far this has been very helpful and instrumental in various apps of mine.
I've upgraded some apps to Windows Phone 8 and noticed that this Starter Kit is not compatible with WP8 due to a breaking change. This is because DataContractSerializer now requires the XML data to be alphabetized, as highlighted in the App Platform Compatibility chart at http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206947%28v=vs.105%29.aspx.
This causes the app to fail because:-
settings = (Settings)ser.ReadObject(xr);
settings remains null as the XML is unreadable.
I've worked around this by moving the XML elements in Settings.xml around so that it is in alphabetical order (PreviewEnabled > RefreshIntervalInMinutes > RssFeeds > Title > Theme > Version), which allowed "settings" to populate.
However, RefreshSelectedFeed() is still broken because the SelectedFeed.RssUrl does not populate, although the Title does, even after rearranging the elements in Settings.xml.
Currently, I'm working around this by adding a switch:-
case "Example 1":
SelectedFeed.RssUrl = "http://www.example.com/feed1/";
case "Example 2":
SelectedFeed.RssUrl = "http://www.example.com/feed2/";
Which seems to work fine.
My question is, is there a more optimized way to perform this workaround?
Yes, writing code that checks for the actual title shouldn't be necessary. It looks like there are data binding errors going on somewhere, or the RssUrl isn't actually getting populated. STep through and look at the deserialized XML document and see if you're getting an RssUrl value, and then (if you are) check the Output window to see if there are any data binding errors.
I have some time set aside in a couple weeks to upgrade all the starter kits to WP8, so hopefully by the end of Jan you'll have some new code to look at :)
I'm trying to keep people at my site. not navigate away thru my site and I cant find a way to remove these controls also on a slightly different subject I have similar issues with the word press starter kit but cant remove the (url text box) from the web browser please help and my app will be summited before chrismas.
If I understand your question correctly, you're trying to show the web browser without the web browser controls at the bottom. The built-in web browser (Internet Explorer) does NOT allow you to customize it this way, so if you allow the users to launch the web browser, there's nothing you can do about it. If, however, you change the app by removing the Launch in Browser button, you should be OK to keep the user in the app and on your site. LMK if this doesn't answer your question.
First, thank you so much for this sample. It's my inspiration to start my app :)
I have change RSS URL and RSS Title
and I wondering that how can I change picture of each RSS.
I want to assign different pictures to each URL
Please help, thanks
Absolutely! It just requires you writing code :) This is a code starter kit, not a product, so it's expected that people will need to make tweaks and other code modifications to get it to work the way they want it to work. Right now, the picture for each feed is determined at runtime by the feed information. If there is no picture detected, a default picture is used. You could alter the code to support a url to a picture for each feed in addition to the metadata that's currently captured with it and use that image instead. Will take some coding but absolutely doable.
i tried this link (http://ttc.ca/RSS/Service_Alerts/index.rss) in the validator and it said it was fine. When i run it in the app a bug occurs and shuts down. you had mentioned in the past you would try to make this feed work, was it supposed to work since your last update? Sincerely, Ryan
Send me the feed URL and I'll check it out. Remember that this is a starter kit, not a full product, so you might need to tweak the source code to get it to work for your specific needs and environment...
Hi, first of all thanks so much for this sample.
I have merged this sample with my own app and is having difficulty running it.
Currently, what I've done is I have moved the code from App.xaml.cs into my own MainPage (the starting page of my app). This is so that the code is only launched when someone selects the RSS segment of the app (which makes up a small proportion of it).
This means that in MainPage.xaml.cs, I have the following code:
private void RSSMode_Click(object sender, System.Windows.Input.GestureEventArgs e)
var vml = Resources["Locator"] as RSSViewModelLocator;
NavigationService.Navigate(new Uri("/RSSMainView.xaml", UriKind.Relative));
(Where RSSMode_Click is the button for navigating to the RSS Page)
However, clicking on this results in the following error at "vml.LoadState();":
"An exception of type 'System.NullReferenceException' occurred in App_Name.DLL but was not handled in user code".
Right now, the app builds correctly without any errors, so I'm not sure as to what is causing the problem.
Along with this issue, I would like to ask:
1. What is the significance of lib/System.ServiceModel.Syndication.dll?
2. If I want to have the "i:Interaction.Triggers" be in C# instead of within the XAML, is it possible and if so, how would I do so? I work better in C# than in XAML and the code I'm trying to work within would probably work better in C#.
Once again, thanks for the sample. I look forward to your reply.
Hey - awesome that you're looking to extend your application with the code from the starter kit! I'll try to help answer your questions.
For the first part, it sounds like the ViewModelLocator is no longer part of the App.xaml file - you'll need to add that back in there.
As for your questions,
#1 - I was using this library to parse RSS and ATOM feeds, but someone complained that this library requires the feed to be valid :-) I removed the code that uses that library, but looks like I forgot to remove the reference. You should be able to remove it OK.
#2 - The whole point of the i:Interaction.Triggers was to move that code out of C# and into the XAML. From my experience, more XAML = more better. Less code = more stable. If you want to remove all the declarative functionality I've put in there, you can always write code to respond to things like "button_click" or "selection_changed", and deal with all the work manually.
If you make these changes and it's still not working, feel free to send me your sample to chris.koenig@microsoft,com, I will try to take a look at it and see if I can get it working for you.
OK - I looked at this today and see that the data coming back is a valid RSS feed, but it seems to be based on the older RDF format, which I have not accounted for in the code. I will see if I can do about making some updates, but I can't commit to any specific delivery date...
I just wanted to use this kit to create a RSS reader for my blog.
But, when I change some texts like the texts on the panorama page where some informations about the selected feeds are displayed, I get an exception right after start on the line with UserIdleDetectionMode.
VisualStudio says it's a NullReferenceException.
when i comment the line out, It won't help, I get another NullReferenceException on the MainView.
Please fix it or tell me, what I'm doing wrong.
And please add all strings to the Localization files, so I can localize this kit easily
Sorry you're having problems with the starter kit. These are samples that are intended to be built upon by members of the community. If you would like to add localization, please send me a pull request from the Git project and I'll happily integrate your changes into the main branch. I can't make any promises about future updates, but if you'll go to the github project for this app and add an issue, it will help me track them.
AS far as the error in your source code, I'd have to see it to diagnose it. Can you send me a zip of the project to email@example.com? I will see if I can figure out what went wrong...