Official full tutorial on XAML syntax

Source: Internet
Author: User

XAML language-General Introduction
This topic describes the functions of Extensible Application Markup Language (XAML) and demonstrates how to use XAML to write Windows Presentation Foundation (WPF) applications. This topic describes the XAML implemented by Windows Presentation Foundation (WPF. XAML is a more extensive language concept than Windows Presentation Foundation (WPF.

XAML syntax terminology

This topic defines the terms used to describe each element of the Extensible Application Markup Language (XAML) syntax. These terms will be frequently used in the rest of the software development kit (SDK. This topic extends the basic terms described in The XAML overview.

Code hiding and XAML

Code hiding is a term used to describe code that is connected to the Code created by the XAML processor when the XAML page is compiled as an application. This topic describes the requirements for code hiding and the optional Inline code mechanism for code in XAML.

XAML and custom classes

Extensible Application Markup Language (XAML) supports defining custom classes or structures using any Common Language Runtime (CLR) language, then, use the XAML tag (including the mix of the Windows Presentation Foundation (WPF)-defined XAML and custom class's XAML tag in the same Tag file) to access this class's function. This topic describes the requirements that a custom class must meet when used as a XAML element.

Tag extension and XAML

This topic describes the markup extension concept of the Extensible Application Markup Language (XAML), including its syntax rules, usage, and underlying Class Object Model.

XAML namespace and namespace ing

This topic further explains the two XML namespace mappings and their uses in the root tag of each eXtensible Application Markup Language (XAML) file. It also describes how to generate similar mappings to use elements defined in your own code and/or separate programs.

WPF name range

The name range is both a concept and a programming object used to store the relationship between the XAML definition name of an object and its instance equivalent. When loading the page of the WPF application, a name range is created in the XAML hosting code. The name range of the programming object is defined by the inamescope interface, and is also implemented by the actual class namescope.

Inline style and template

The style object and template object (frameworktemplate subclass) provided by Windows Presentation Foundation (WPF) can be used to define the visual appearance of elements in a resource. Therefore, they can be used multiple times. Therefore, the style and frameworktemplate attributes in XAML can always reference existing styles and templates, rather than defining new inline styles and templates.

Blank processing in XAML

The Extensible Application Markup Language (XAML) contains some language rules that demonstrate the importance of white space processing through the XAML processor implementation. This topic describes these language rules and introduces other blank processing defined by the XAML Implementation of the Windows Presentation Foundation (WPF) processor, as well as the XAML serialization writer.

Typeconverters and XAML

The typeconverter class has a specific purpose as part of a managed custom implementation. This managed custom implementation can be used as a property value in Extensible Application Markup Language (XAML) attribute usage. If you want to write a custom class and use an instance of the class as an attribute value that can be set by the Extensible Application Markup Language (XAML), you may need to apply typeconverterattribute to the class, you can also compile a custom typeconverter class or both.

XML character entity and XAML

Extensible Application Markup Language (XAML) uses the character entity defined in XML for special characters.

XAML namespace (x :) language function

X: array tag extension, X: class attribute, X: classmodifier attribute, X: Code XAML directive element, X: fieldmodifier attribute, X: key attribute, X: Name attribute, X: null tag extension, X: Shared attribute, X: static tag extension ......

WPF namespace XAML Extension

Binding tag extension, colorconvertedbitmap tag extension, componentresourcekey tag extension, dynamicresource tag extension, relativesource markupextension, staticresource tag extension ......

Mark compatibility (MC :) language function

MC: ignorable attribute, MC: processcontent attribute ......


Reproduced from: http://rcdos.net/Article.aspx? Para = 44

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.