【问题标题】:How to create custom URL based xaml namespace (xmlns) in Xamarin Forms?如何在 Xamarin Forms 中创建基于自定义 URL 的 xaml 命名空间 (xmlns)?
【发布时间】:2015-10-14 10:08:40
【问题描述】:

是否可以在 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 中实现?

【问题讨论】:

    标签: c# forms xaml xamarin xamarin.forms


    【解决方案1】:

    我认为这种方法(当前)在 XAML 的 Xamarin.Forms 实现中不受支持。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-28
    • 2019-01-31
    • 1970-01-01
    • 2011-09-27
    相关资源
    最近更新 更多