A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.0 KiB

using System;
namespace Avalonia.Metadata
{
/// <summary>
/// Maps an XML namespace to a CLR namespace for use in XAML.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class XmlnsDefinitionAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="XmlnsDefinitionAttribute"/> class.
/// </summary>
/// <param name="xmlNamespace">The URL of the XML namespace.</param>
/// <param name="clrNamespace">The CLR namespace.</param>
public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace)
{
XmlNamespace = xmlNamespace;
ClrNamespace = clrNamespace;
}
/// <summary>
/// Gets or sets the URL of the XML namespace.
/// </summary>
public string XmlNamespace { get; }
/// <summary>
/// Gets or sets the CLR namespace.
/// </summary>
public string ClrNamespace { get; }
}
}