[英]How to create custom URL based xaml namespace (xmlns) in Xamarin Forms?
是否可以在xamarin表單中創建基於URL的自定義命名空間,以便我可以使用xmlns:lib="http://schemas.officename.com/component/2015/xaml"
代替clns命名空間,例如xmlns:lib="clr-namespace:Forms.Library.ontrols;assembly=Forms.Library"
像這里的例子
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中未實現的那些?
我不相信XAML的Xamarin.Forms實現(當前)支持這種方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.