XmlnsPrefixAttribute Class
Definition
Use to predefine the prefix associated to an xml namespace in a xaml file
public class XmlnsPrefixAttribute
Remarks
example: [assembly: XmlnsPrefix("https://github.com/avaloniaui", "av")] xaml: xmlns:av="https://github.com/avaloniaui"
Constructors
| Name | Description |
|---|---|
| XmlnsPrefixAttribute | Constructor |
XmlnsPrefixAttribute Constructor
Constructor
public XmlnsPrefixAttribute(string xmlNamespace, string prefix)
Parameters
xmlNamespace string
XML namespce
prefix string
recommended prefix
Properties
| Name | Description |
|---|---|
| Prefix | New Xml Namespace |
| XmlNamespace | XML Namespace |
Prefix Property
New Xml Namespace
public string Prefix { get; set; }
XmlNamespace Property
XML Namespace
public string XmlNamespace { get; set; }