如何在 Xamarin Forms 中创建基于 xaml 的自定义 URL 命名空间 (xmlns)?

How to create custom URL based xaml namespace (xmlns) in Xamarin Forms?

是否可以在 xamarin 表单中创建一个自定义的基于 url 的命名空间,以便我可以使用 xmlns:lib="http://schemas.officename.com/component/2015/xaml" 而不是像 xmlns:lib="clr-namespace:Forms.Library.ontrols;assembly=Forms.Library"

这样的 clr 命名空间

喜欢这里的例子

http://www.codeproject.com/Articles/111911/A-Guide-to-Cleaner-XAML-with-Custom-Namespaces-and

http://www.kunal-chowdhury.com/2013/05/how-to-create-custom-xmlns-namespaces.html

我尝试导入

using System.Windows.Markup;

在 AssemblyInfo.cs 中,但没有找到 XmlnsDefinitionXmlnsPrefix 也不存在。

我是否需要导入任何特定的 dll 或者 Xamarin Forms 中未实现的那些?

我认为 XAML 的 Xamarin.Forms 实施(目前)不支持这种方法。