Partilhar via


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

  • Anonymous
    November 26, 2007
    PingBack from http://msdnrss.thecoderblogs.com/2007/11/26/

  • Anonymous
    November 26, 2007
    MSBuild MSBuild Task for SharePoint - MakeCab [Via: Steve ] ASP.NET Ajax with the ASP.NET MVC Framework...

  • Anonymous
    November 26, 2007
    Link Listing - November 26, 2007

  • Anonymous
    November 28, 2007
    The comment has been removed