Class XmlnsPrefixAttribute
Use to predefine the prefix associated to an xml namespace in a xaml file
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class XmlnsPrefixAttribute : Attribute
- Inheritance
-
XmlnsPrefixAttribute
- Inherited Members
Remarks
example: [assembly: XmlnsPrefix("https://github.com/avaloniaui", "av")] xaml: xmlns:av="https://github.com/avaloniaui"
Constructors
XmlnsPrefixAttribute(string, string)
Constructor
public XmlnsPrefixAttribute(string xmlNamespace, string prefix)
Parameters
Properties
Prefix
New Xml Namespace
public string Prefix { get; }
Property Value
XmlNamespace
XML Namespace
public string XmlNamespace { get; }