How many types of different XAML Markup Extensions do you know?

Technology CommunityCategory: XamarinHow many types of different XAML Markup Extensions do you know?
VietMX Staff asked 3 years ago

There are different Markup Extensions available to access from x prefix of the namespace declaration such as:

  • x:Static: Used when we want to access static properties, fields, or Enum members in XAML elements.
  • x:Reference: Used when we want to declare the reference of some named element into some other element of the same XAML Page.
  • x:Type: Used when we want to set the type of some attribute to System.Type object.
  • x:Array: Used when we want to construct the array of objects of some specific type.
  • x:Null: Used when we want to set the value of some attribute to a null.