Skip to main content

XmlnsPrefixAttribute Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Use to predefine the prefix associated to an xml namespace in a xaml file

public class XmlnsPrefixAttribute

Inheritance: Attribute -> XmlnsPrefixAttribute

Remarks​

example: [assembly: XmlnsPrefix("https://github.com/avaloniaui", "av")] xaml: xmlns:av="https://github.com/avaloniaui"

Constructors​

NameDescription
XmlnsPrefixAttributeConstructor

XmlnsPrefixAttribute Constructor​

Constructor

public XmlnsPrefixAttribute(string xmlNamespace, string prefix)

Parameters​

xmlNamespace string

XML namespce

prefix string

recommended prefix

Properties​

NameDescription
PrefixNew Xml Namespace
XmlNamespaceXML Namespace

Prefix Property​

New Xml Namespace

public string Prefix { get; set; }

XmlNamespace Property​

XML Namespace

public string XmlNamespace { get; set; }