The Sandbox Thread

7 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Simple Avalon Weather Forecaster

Back to Forum: The Sandbox
  • User profile image
    Nate​Furtwangler

    I had some spare time this weekend and wanted to experiment with Avalon and databinding, so I wrote a simple desktop weather forecaster which gives basic weather information for most cities in the world with data provided by weather.com's webservices.

    It uses a mix of XmlDataSource data and a custom WeatherSource class as data sources which are bound to various controls and updated accordingly.

    In accordance with the WebService agreement I provided links back to weather.com and a weather.com logo which I hope I implemented correctly (the requirements were pretty strict)

    As mentioned above, I did this in my spare time over the past couple of days, so not a lot of emphasis was put toward user-interface or style, I was more concerened with getting/presenting data with Avalon.

    I learned quite a bit about Avalon and XAML in doing this project, and there are LOTS of things I would do differently now, but the end result works like I hoped and it would be very easy to add information and features (data visualization?) later.

    Right now it displays the current weather conditions and high/low temperatures with weather condition "icons" one day at a time with the ability to look 9 days into the future.  Of course, weather.com gives much more data than this but from a coding perspective it would have been redundant to have it show all the data.  The city can be changed by clicking on the display text of the current city.

    I've uploaded a zip of the C# project (I used Visual Studio C# Express and Avalon May CTP) but the .exe can be downloaded here: http://www.msu.edu/~furtwan4/WeatherClient.zip if you just want to see it running (assuming you have Avalon May CTP)

    Let me know what you guys think!

  • User profile image
    SCMcDonnell

    nice-job... it shows some good use of Dualon.. .. excellent. SM

  • User profile image
    PeterH

    That's awsome, I'm not to keen on background, a little too... blue? But I suppose you did it to practise using Avalon, or maybe you just really like blue?

    Apart from that as SCMcDonnell said this is a brilliant use of Avalon!

    Well Done!

  • User profile image
    Nate​Furtwangler

    Thanks for the encouraging comments guys!

    Peter, you're definitely right about the blue.  But like you guessed I did this project to practice using Avalon/XAML/DataBinding and spent very little time on the style or the UI.  My next project will be highly style oriented because I want to get familiar with Avalon animations and really exploit it's UI potential.

    Shaun, thanks for bringing ink replies to my attention!  I've had a TabletPC since January and I've actually never seen an ink-enabled forum before.  I'll have to get that set up soon.

  • User profile image
    JChung2006

    Cool app!

    Ink replies, meh.  An 8k GIF to communicate what 80 Unicode bytes could have.  What a waste.

  • User profile image
    Andy Barker

    Excelent App

    I've been meaning to get hold of the avalon CTP and have a play for a while. Just too busy with Sharepoint at the mo Sad

    Keep up the great work

  • User profile image
    BigPimpin

    Nice Job!

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.