This article uses weather Reader User control (WRUC) to simulate meteorological components in Windows 7 Gadgets. The Wruc control is made using C # and WPF, first downloading the Wruc source code, which has already implemented all the weather forecast functions, simply importing the DLL library into other projects.
Wruc Update
Before using the Wruc control, look at its working mode and refine some of its features. The source can be seen by the control is the http://weather.service.msn.com service to obtain a place weather data (XML format), and then read the XML out to the user with WPF. The following figure is the default interface style for Wruc, and you can see that the control defaults to the weather in the Redmond area, although it can be set to other regions, but you want the program to run as local weather data. It also wants to add the day temperature range below the day temperature and change all temperatures to degrees Celsius.
In the Wruc project, you can see the settings1.settings configuration file, which is the Redmond area information, modified to local information, here I will change to Beijing.
The default area for the control is Beijing, and degreetype can adjust the temperature by default to Celsius.