【发布时间】: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 中,但未找到 XmlnsDefinition 和 XmlnsPrefix 也不存在。
我是否需要导入任何特定的 dll 或未在 Xamarin Forms 中实现?
【问题讨论】:
标签: c# forms xaml xamarin xamarin.forms