WP7 Application Development notes-system topic resources should be considered when bean knowledge uses local values

Source: Internet
Author: User

The development of the localized language version has been completed in a relatively short time recently, but it was not passed when the app was updated.

The reason is that this manual test has not been performed.

 

5.5.2-content and subject
Regardless of the mobile phone subject, the content of the application (such as text and visual elements) must be clear and easy to read. For example, if the phone subject changes from a black background to a white background, the text and visual elements of the application must be clear and easy to read.

 

The problem found during debugging is that a local value is used for the background: black, but the background will also become black in the white topic. The system resource {staticresource phonebackgroundbrush} is used to solve this problem.

It's too careless to test your own skills!

 

The system topic provides many resources, such as the following table.

 

Name

Type

Description

Phoneaccentbrush Color Highlight the current topic
Phonebackgroundcolor Color

Default background of pages and other controls

Phoneforegroundcolor Color Default foreground and border color
Phonestrokethickness Double Padding and padding
Phonefontsizesmall Double Small font size
Phonefontsizemedium Double Medium font size
Phonefontsizelarge Double Large font size

 

For more theme resources, refer to the Windows Phone theme resources in msdn:

Http://msdn.microsoft.com/zh-cn/library/ff769552 (V = vs.92). aspx

 

Using system theme resources ensures the uniformity of the program interface and the current user theme.

 

For ease of operation, blend provides a convenient way to bind system theme resources:

 

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.