UWP Learning record 3-styles for design and UI

Source: Internet
Author: User

UWPLearning Record3-Design andUIthe style1, Color

In the system's "settings">"Personalization">"COLOR" provides a choice of theme colors. When a theme color is selected, it is based on the color brightnessHSBvalue creates a light and dark theme color. Apps can use shadow variables to create visual hierarchies and provide interactive instructions. In theXAML, the main theme color is displayed asSystemaccentcolortheme Resources. These tones can be used asSYSTEMACCENTCOLORLIGHT3,SystemAccentColorLight2,SystemAccentColorLight1,SystemAccentColorDark1,SYSTEMACCENTCOLORDARK2and theSystemAccentColorDark3. You can also passUisettings.getcolorvalueand theUicolortypeenumeration, which is obtained programmatically.

Users can also select a light or dark theme for the system.

Apps that use light themes apply to scenarios that involve productive applications. Microsoft Office The application suite provided is an example. Light themes Support easy reading of lengthy tasks during extended task times.

Darker themes are more able to see the content contrast of media-centric apps or offer a comparison of scenarios for user-rich video or images. In these scenarios, although the experience of watching a movie may be the primary task, reading is not necessarily the case, and it is displayed in darker ambient conditions.

If your app does not fully conform to any of these descriptions, consider following the system theme and letting the user decide which theme is right for them. You can control the theme of your app through application.requestedtheme or frameworkelement.requestedtheme .

2, Layout

The default font used is the Segoe UI. For text styles, the recommended styles are as follows:

In addition, for Chinese, the recommended font is the Arial and Microsoft yahei UI. The font recommended in traditional Chinese is the Microsoft jhenghei UI.

3, Control Styles

You can use the XAML Framework to customize the appearance of your app in a number of ways. Styles allow you to set control properties and reuse these settings to keep multiple controls in a consistent appearance.

This piece is the same as WPF . As with the style and color, you can select the body, which is available in three options: Light, dark, and high contrast.

4, icons, actions, sounds

Do it further in the future.

UWP Learning record 3-styles for design and UI

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.