Development in Windows 8-use a unified principle diagram of convertible background (XAML) in applications

Source: Internet
Author: User

Scenario

The application uses a unified switchable background. When the background is switched, the background of all pages is switched at the same time. It seems like a simple task, but it still takes a little effort.


Ideas

The idea is simple: first create an observed backgrounduri class, which is mainly associated with several background image Uris, and then bind the same imagesource to all application pages, its URI is associated with the background object. Then, a backgroundmanager class is created to regularly change the URI attribute in the backgrounduri.

This idea may not be mature, but I did not expect a better method. This structure is relatively simple, and the following is a sketch.

(The figure is big)


Implementation

Here, the files are scattered,CodeHard to extract

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.