2 using System.Diagnostics;
3 using System.ComponentModel;
8 /// Specifies a mapping on a per-assembly basis between a XAML namespace and a CLR namespace,<br />
9 /// which is then used for type resolution by a XAML object writer or XAML schema context.
11 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
12 [EditorBrowsable(EditorBrowsableState.Never)]
13 [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
14 [DebuggerDisplay("{XmlNamespace}, {ClrNamespace}, {AssemblyName}")]
15 public sealed class XmlnsDefinitionAttribute : Attribute
17 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
18 [EditorBrowsable(EditorBrowsableState.Never)]
19 public string XmlNamespace { get; }
21 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
22 [EditorBrowsable(EditorBrowsableState.Never)]
23 public string ClrNamespace { get; }
25 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 public string AssemblyName { get; set; }
29 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace)
33 if (xmlNamespace == null)
34 throw new ArgumentNullException(nameof(xmlNamespace));
35 if (clrNamespace == null)
36 throw new ArgumentNullException(nameof(clrNamespace));
38 ClrNamespace = clrNamespace;
39 XmlNamespace = xmlNamespace;