2017-09-28 15 views
1

私は、単一のコンテンツページで2つのカスタムコントロールを使用する必要がある状況があります。しかし、これら2つのコントロールの名前空間を追加しようとすると例外が発生します。そのための解決策はありますか?Xamarinフォームに複数の名前空間を追加するにはどうすればよいですか?

<ContentPage Title="Settings" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:controls="clr-namespace:Naseej.Control, clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions" x:Class="Naseej.Page.Setting.SettingList"> 

答えて

1

これを試してみてください:

<ContentPage Title="Settings" xmlns="http://xamarin.com/schemas/2014/forms" 
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
xmlns:controls="clr-namespace:Naseej.Control, clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions" 
xmlns:anotherControls="Your.Assembly.Path" 
x:Class="Naseej.Page.Setting.SettingList"> 
+0

はこれを試してみましたか? – casper123

関連する問題