Browse Source

Documentation.

pull/223/head
Steven Kirk 11 years ago
parent
commit
57fbf27c9e
  1. 3
      src/Perspex.Application/Application.cs
  2. 30
      src/Perspex.Base/Metadata/XmlnsDefinitionAttribute.cs

3
src/Perspex.Application/Application.cs

@ -119,6 +119,9 @@ namespace Perspex
private set; private set;
} }
/// <summary>
/// Gets the application clipboard.
/// </summary>
public IClipboard Clipboard => _clipboard.Value; public IClipboard Clipboard => _clipboard.Value;
/// <summary> /// <summary>

30
src/Perspex.Base/Metadata/XmlnsDefinitionAttribute.cs

@ -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…
Cancel
Save