2 changed files with 25 additions and 8 deletions
@ -1,21 +1,35 @@ |
|||||
using System; |
// Copyright (c) The Perspex Project. All rights reserved.
|
||||
using System.Collections.Generic; |
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
||||
using System.Linq; |
|
||||
using System.Text; |
using System; |
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace Perspex.Metadata |
namespace Perspex.Metadata |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Maps an XML namespace to a CLR namespace for use in XAML.
|
||||
|
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] |
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] |
||||
public class XmlnsDefinitionAttribute : Attribute |
public class XmlnsDefinitionAttribute : Attribute |
||||
{ |
{ |
||||
public string XmlNamespace { get; set; } |
/// <summary>
|
||||
public string ClrNamespace { get; set; } |
/// 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) |
public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace) |
||||
{ |
{ |
||||
XmlNamespace = xmlNamespace; |
XmlNamespace = xmlNamespace; |
||||
ClrNamespace = clrNamespace; |
ClrNamespace = clrNamespace; |
||||
} |
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets or sets the URL of the XML namespace.
|
||||
|
/// </summary>
|
||||
|
public string XmlNamespace { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets or sets the CLR namespace.
|
||||
|
/// </summary>
|
||||
|
public string ClrNamespace { get; set; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue