From 1aa50361bb1a27821a407a26df8f4216cdad00c4 Mon Sep 17 00:00:00 2001 From: bmello4688 Date: Tue, 20 Oct 2020 08:55:17 -0400 Subject: [PATCH 1/4] add XmlnsPrefix which is in WPF --- .../Metadata/XmlnsPrefixAttribute.cs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs diff --git a/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs b/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs new file mode 100644 index 0000000000..0f091d540a --- /dev/null +++ b/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs @@ -0,0 +1,30 @@ +using System; + +namespace Avalonia.Metadata +{ + [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] + public sealed class XmlnsPrefixAttribute : Attribute + { + /// + /// Constructor + /// + /// XML namespce + /// recommended prefix + public XmlnsPrefixAttribute(string xmlNamespace, string prefix) + { + XmlNamespace = xmlNamespace ?? throw new ArgumentNullException(nameof(xmlNamespace)); + + Prefix = prefix ?? throw new ArgumentNullException(nameof(prefix)); + } + + /// + /// XML Namespace + /// + public string XmlNamespace { get; } + + /// + /// New Xml Namespace + /// + public string Prefix { get; } + } +} From e80e413cf001bd77bec30688ae2c56c1c5aa2d6b Mon Sep 17 00:00:00 2001 From: bmello4688 Date: Wed, 21 Oct 2020 19:56:18 -0400 Subject: [PATCH 2/4] Add sumary and remark to class header --- src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs b/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs index 0f091d540a..ad017822e4 100644 --- a/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs +++ b/src/Avalonia.Base/Metadata/XmlnsPrefixAttribute.cs @@ -2,6 +2,15 @@ namespace Avalonia.Metadata { + /// + /// Use to predefine the prefix associated to an xml namespace in a xaml file + /// + /// + /// example: + /// [assembly: XmlnsPrefix("https://github.com/avaloniaui", "av")] + /// xaml: + /// xmlns:av="https://github.com/avaloniaui" + /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class XmlnsPrefixAttribute : Attribute { From 63d5ff3e2f9b871eda6adf6928997068f52a500a Mon Sep 17 00:00:00 2001 From: Andrey Kunchev Date: Thu, 22 Oct 2020 11:56:54 +0300 Subject: [PATCH 3/4] fix nuget package build --- build/SharedVersion.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/SharedVersion.props b/build/SharedVersion.props index d1e9f7b751..95556af160 100644 --- a/build/SharedVersion.props +++ b/build/SharedVersion.props @@ -20,6 +20,6 @@ - + From e39cc76cd55495eadafedbacb62b20b24df7d338 Mon Sep 17 00:00:00 2001 From: Dariusz Komosinski Date: Thu, 22 Oct 2020 13:34:01 +0200 Subject: [PATCH 4/4] Update readme to include info about Rider preview builds. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ccdbbfb967..726a634e1a 100644 --- a/readme.md +++ b/readme.md @@ -39,7 +39,7 @@ Examples of UIs built with Avalonia ## JetBrains Rider -If you need to develop Avalonia app with JetBrains Rider, go and *vote* on [this issue](https://youtrack.jetbrains.com/issue/RIDER-39247) in their tracker. JetBrains won't do things without their users telling them that they want the feature, so only **YOU** can make it happen. +If you need to develop Avalonia app with JetBrains Rider you can use latest Rider [preview builds](https://www.jetbrains.com/rider/nextversion/). ## Bleeding Edge Builds