WPF weather reader user control

Recently Ahmad, our test intern, created a WPF weather user control and it came out really nice. Take a look.

The code is available on code plex .. The code also includes a sample which is demo desktop weather gadget using the usercontrol.

The user control provides 2 dependency properties, IsMaximized and ShowMinimizeButton.... The first property decides whether to show the control in a minimal form just as the Vista weather gadget behaves in the sidebar. The second property decides whether to show the minimize button.

 In xaml, you need to reference the dll as follows

xmlns:y="clr-namespace:WeatherReaderMVC;assembly=WeatherReaderMVC"   ...

 <y:WeatherReaderUI  Minimized="False" HideMinimizeButton="False"/>

The setting dialog is a popup so it comes up on top of your app. The control was created with reusability and extensibility in mind. Currently it connects to the MSN xml feed. Changing the feed requires a slight tweaking in code since the xml tags differ from site to site.

Please do take a look at the code .... 🙂

Share this post


Comments (4)

  1. MSBuild MSBuild Task for SharePoint – MakeCab [Via: Steve ] ASP.NET Ajax with the ASP.NET MVC Framework…

  2. Link Listing – November 26, 2007

  3. Thierry says:

    Woaw … very nice. I wish it didn’t take 15 seconds to load on a P4-3.4Ghz with 2Gb RAM and those 42Mb of RAM for execution …

Skip to main content