Introducing Feed Tracker

1 Comment

Introducing Feed Tracker, my first WPF application.

image

Feed tracker let’s you track your RSS 2.0 and Atom 1.0 feeds. Just add your feed and stay updated.

Features:

  • Can read RSS 2.0 and Atom 1.0 feeds.

New features to come:

  • Multithreading support.
  • Older RSS versions support.
  • New UI.

You can get Feed Tracker to install via ClickOnce here.

Codeplex source: http://feedtracker.codeplex.com

Can’t wait for some feedback.

Writing a RSS feed reader – Day One

Leave a comment

I was literally thinking about what should be my first WPF app. As Pete Brown said in one of his articles you need to find a good starting app to get familiar with the technology. First I wanted to create an old (undone) app of mine made in WinForms, but it was a bit to complicated for WinForms also so I decide to go with a RSS feed reader.

Started Googleing for some demo apps to illustrate how to start with this kind of app but didn’t find anything that I liked.

After that I searched how to read RSS feed. I found that you can load the feed into an XDocument (System.Xml.Linq.XDocument) and get your info from there if you know how to work with xml files. The problem was that not all feeds have the same format. ‘Great!’ I thought another app goes to the dustbin, but I didn’t want to give up that easily and found out that .NET has a special namespace that can handle Syndication feeds like RSS and Atom: System.ServiceModel.Syndication. In this namespace I found the SyndicationFeed class and from there I can use it to read the feed. Great stuff!

After all of this I started to think how the hell I’m going to store my feeds. After a great amount of thinking I found out that storing them into the App Settings was the best way to do it. One more problem solved. Another problem comes up. I need to store both the feed title and the feed address for later use. Great another problem arose. Started to store the feed title and the feed address into the same setting and them split them using the String.Split method but that proved ineffective for the following reason: I used ‘_’ (underscore) as the split char, but that isn’t recommended because what happens when the feed title or the feed address contains an underscore. I would’ve got an IndexOutOfRange at best or worse incorrectly formatted strings in my settings.

How to solve this issue? Simple: put the title and the address on two separate settings and then use the StringCollection (System.Collections.Specialized) class’s IndexOf method to get the index of the title and them retrieve the address at the same index (as you add the feed title and feed address at the same time in the settings, you wont get mix-up indexes). After solving all of these issues is time to figure out how to populate the feed list, get the feeds and display them somewhere. I’m at this stage of development. Multi-threading will be involved as it takes some time to get the feed from the web. Error-handling will be somewhat painful but who said that this kind of app will be easy?

As I get a working alpha of my app I’ll post it on Google Project or Codeplex or maybe both and get some user feedback.

Here are some previews:

image UI mock-up (will be restyled)

image Code so far…

image Code so far… II

Looking forward for some feedback.

Fake OS in WPF

Leave a comment

Have you ever wondered how do some movies have such cool OS themes and such? Well I have and I think I found out how they do it. It’s either flash or how I’m trying to do it in WPF. WPFs easy ability to customize UI and pretty much everything else helps you to achieve this. I’ll try to come up with some UI and some working stuff.

This will be a perfect excuse to dive into Styling, Themes and such in WPF. It’ll be a learning experience for me as well, as I’m a relative new user to the technology. Stay tuned.

WPF Animation using DoubleAnimationUsingKeyFrames

4 Comments

Every body knows that Windows Presentation Foundation provides better support for UI than WinForms does in .NET 3.5 (and RC .NET 4).

You can make very beautiful application UI using Visual Studio 2008 (or the new Visual Studio 2010), but this requires very good knowledge of XAML or use other WPF design based application like Microsoft Expression Blend. I for one don’t afford Blend and had to rely entirely on Visual Studio 2010. That’s my way of learning WPF design. Code and if I get no errors see what the code does.

In this post I’ll show how to make a button “disappear” from a window and come back using a Storyboard that contains a DoubleAnimationUsingKeyFrames.

Cont-uri noi…

Leave a comment

În ultimele zile tot am vrut să-mi schimb cont-urile si să trec şi eu de la nickname-uri la un cont mai cum trebuie. Când voi putea schimba şi cont-ul de Yahoo! am să vă anunţ. Până atunci rămân actualele cont-uri.

UPDATE:

Am schimbat toate cont-urile mele. Nu le voi posta din motive de spamming, dar cei care ma stiu le au deja.

Follow

Get every new post delivered to your Inbox.

Join 109 other followers