简体   繁体   中英

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

Is it possible to create a custom url based namespace in xamarin forms so that i can use xmlns:lib="http://schemas.officename.com/component/2015/xaml" instead of clr namespace like xmlns:lib="clr-namespace:Forms.Library.ontrols;assembly=Forms.Library"

like the examples here

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

i tried importing

using System.Windows.Markup;

in AssemblyInfo.cs, but it is not found also XmlnsDefinition and XmlnsPrefix are not there.

do i need to import any specific dll or those are not implemented in Xamarin Forms ?

我不相信XAML的Xamarin.Forms实现(当前)支持这种方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM