WPF emulates Windows 7 meteorological components

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.