diff --git a/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs b/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs
new file mode 100644
index 0000000000..0f091d540a
--- /dev/null
+++ b/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace Avalonia.Metadata
+{
+ [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
+ public sealed class XmlnsPrefixAttribute : Attribute
+ {
+ ///
+ /// Constructor
+ ///
+ /// XML namespce
+ /// recommended prefix
+ public XmlnsPrefixAttribute(string xmlNamespace, string prefix)
+ {
+ XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace));
+
+ Prefix = prefix ?? throw new ArgumentNullException(nameof(prefix));
+ }
+
+ ///
+ /// XML Namespace
+ ///
+ public string XmlNamespace { get; }
+
+ ///
+ /// New Xml Namespace
+ ///
+ public string Prefix { get; }
+ }
+}