Table of Contents

Class XmlnsPrefixAttribute

Namespace
Avalonia.Metadata
Assembly
Avalonia.Base.dll

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

xmlNamespace string

XML namespce

prefix string

recommended prefix

Properties

Prefix

New Xml Namespace

public string Prefix { get; }

Property Value

string

XmlNamespace

XML Namespace

public string XmlNamespace { get; }

Property Value

string