The preface to the 5th chapter of programming WPF translation

Source: Internet
Author: User

In summary, for document processing, "style" is a set of attributes that apply to a range of content, such as text, images, and so on. For example, we are using the style named "Normail,body,b" and used for pre-release documentation, which means using the number 10th font, fully aligned. Later in the document, we'll use the style named "Code,x,s", which will be left-aligned using the number 9th Courier New Font. When content is generated, the style is applied to the content, creating a definite look.

In WPF, styles are also a set of properties that are applied to the content, and are used to generate visualizations. Styles can set properties on existing visual elements, just as you set the font width of the button control, or you can use to define the appearance of the object, just as you display the name and age of the person object. In addition to the features of word processing styles, the WPF style has special features for building applications, including the ability to combine different visualizations based on user events, providing a complete new look for existing controls, and even indicating behavior for non-visual objects. All of these features are no longer associated with the need to create a custom control (although this is a useful thing to do, such as. discussed in the 9th chapter).

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.