WPF Basic Learning Notes Collation (ii) XAML

Source: Internet
Author: User

Basic knowledge:

    • Xaml:extensible application Markup Language, Zammel;
    • used for instantiation. NET object's markup language ;
    • Xmal uses a tree-shaped logical structure to describe the UI;
    • Baml:binary application Markup Language, the binary representation of Xmal, VS will convert all XAML to BAML when compiling a WPF application, and BAML will eventually be embedded as a resource in a DLL or EXE assembly;
    • BAML is marked, so it is smaller than XAML;
    • WPF applications three top-level elements: Window, page, and application;.
    • Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    • The core namespace of WPF, which contains all the WPF classes, including the controls that build the user interface;
    • xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"
    • A XAML namespace that contains various XAML usage attributes that can affect how the document is interpreted;
    • The top two namespaces are namespaces that are formatted by using the URI(Uniform Resource Identifier);
    1. The schemas.com domain is owned by Microsoft and is used only by Microsoft, thereby preventing the use of other organizations;
    2. The XML namespace used in XAML and the. Net namespace are not one by one counterparts, it is a collection of multiple namespaces, which can be combined into an XML namespace, preventing multiple namespaces from being used in a chaotic environment;

    • All the work of the InitializeComponent() method in the window class is to invoke the loadcomponentof the System.Windows.Application class ( ) method, extract BAML from the assembly, build the user interface (create all control objects + set its properties + Associate all event handlers);

WPF Basic Learning Notes Collation (ii) XAML

Related Article

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.