Skip to main content

XmlnsDefinitionAttribute Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Maps an XML namespace to a CLR namespace for use in XAML.

public class XmlnsDefinitionAttribute

Inheritance: Attribute -> XmlnsDefinitionAttribute

Constructors

NameDescription
XmlnsDefinitionAttributeInitializes a new instance of the Avalonia.Metadata.XmlnsDefinitionAttribute class.

XmlnsDefinitionAttribute Constructor

Initializes a new instance of the Avalonia.Metadata.XmlnsDefinitionAttribute class.

public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace)

Parameters

xmlNamespace string

The URL of the XML namespace.

clrNamespace string

The CLR namespace.

Properties

NameDescription
ClrNamespaceGets or sets the CLR namespace.
XmlNamespaceGets or sets the URL of the XML namespace.

ClrNamespace Property

Gets or sets the CLR namespace.

public string ClrNamespace { get; set; }

XmlNamespace Property

Gets or sets the URL of the XML namespace.

public string XmlNamespace { get; set; }