Auttribute, xmalauttribute

Source: Internet
Author: User

Auttribute, xmalauttribute
1 X: Class

It indicates that the XAML compiler combines the compilation result of The XAML label with the class specified in the background code. It can only be used for the root node and the class with the same name needs to have a Partial such as window

2 X: ClassModifier

The role tells the XAML compiler what access control level (Public, Privare Internal Protect...) is generated by the label compilation class .....) "The access level must be the same as the access level of the class with the same name"

3 X: Name

Preface a XAML tag corresponds to an object. This object is generally a space instance. the class on the NET platform is a reference class. When using an instance of the reference type, it usually appears in pairs in the form of "> instance", and we can only access the instance through the quotor, when the instance is not referenced by any reference, it is destroyed as garbage.

 

 

Use X: Name

X: Name generates reference for the corresponding instance for the tag, and registers this value to the UI tree. Its value is the reference variable,

 

 

4 X: FidldModifier

Control access level (that is, the access level of the control's referenced variables)

Function: X: Name = Value is the reference variable of the control. The access level of the control is Internal by default, if you need to access the control of another assembly form from one assembly, you need to change the attribute to public.

<TextBox x: Name = "text" x: FieldModifier = "public"> </TextBox>

5 X: Key

In XMAL, we can extract a lot of content that needs to be used multiple times and put it in the resource dictionary. When we need to use this resource, we will use its X: key retrieval (for example, repeated Style Template Data animation)

X: The Key is used to attach an index to the resource for retrieval.

 

 

6 X: Shared

X: shared and X: Key are used together. X: Shared = True (default) is the same object each time this resource object is retrieved, otherwise, we will get a new copy of this object.

7 X: Type

X: the value of Type is a data Type,

. Net class named Type as the abstraction of all data types at the programming level

 

 

Or

 

8 X: Null

Explicitly assign a null value to an attribute

 

9 X: Array

X: Array is used to expose a known ArrayList instance to the user through its Item attribute. Its Type is specified by X: Array Type.

 

10 X: Static

Use a statc Member of the Data Type in the XAML document (it must be an attribute or field of the Data Type)

 

 

11 X: XData and X: Code (Directive element)

 

 

XmlDataProvider data provider

 

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.