From 57fbf27c9e44722c03809a5a43eab3e0817935ea Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 27 Sep 2015 15:13:11 +0200 Subject: [PATCH] Documentation. --- src/Perspex.Application/Application.cs | 3 ++ .../Metadata/XmlnsDefinitionAttribute.cs | 30 ++++++++++++++----- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/Perspex.Application/Application.cs b/src/Perspex.Application/Application.cs index ac93f82fec..f0a3c1a8ee 100644 --- a/src/Perspex.Application/Application.cs +++ b/src/Perspex.Application/Application.cs @@ -119,6 +119,9 @@ namespace Perspex private set; } + /// + /// Gets the application clipboard. + /// public IClipboard Clipboard => _clipboard.Value; /// diff --git a/src/Perspex.Base/Metadata/XmlnsDefinitionAttribute.cs b/src/Perspex.Base/Metadata/XmlnsDefinitionAttribute.cs index 63371bf80f..8e9fddc50b 100644 --- a/src/Perspex.Base/Metadata/XmlnsDefinitionAttribute.cs +++ b/src/Perspex.Base/Metadata/XmlnsDefinitionAttribute.cs @@ -1,21 +1,35 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +// Copyright (c) The Perspex Project. All rights reserved. +// Licensed under the MIT license. See licence.md file in the project root for full license information. + +using System; namespace Perspex.Metadata { + /// + /// Maps an XML namespace to a CLR namespace for use in XAML. + /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public class XmlnsDefinitionAttribute : Attribute { - public string XmlNamespace { get; set; } - public string ClrNamespace { get; set; } - + /// + /// Initializes a new instance of the class. + /// + /// The URL of the XML namespace. + /// The CLR namespace. public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace) { XmlNamespace = xmlNamespace; ClrNamespace = clrNamespace; } + + /// + /// Gets or sets the URL of the XML namespace. + /// + public string XmlNamespace { get; set; } + + /// + /// Gets or sets the CLR namespace. + /// + public string ClrNamespace { get; set; } } }