在clr命名空间中找不到Xamarin表单XamlParseException类
我最近购买了Grialkit,正在为我正在开发的应用程序创建一个简单的演练 我正在遵循grialkit中包含的示例 我有一个页面,名为在clr命名空间中找不到Xamarin表单XamlParseException类,xaml,xamarin.forms,xamlparseexception,Xaml,Xamarin.forms,Xamlparseexception,我最近购买了Grialkit,正在为我正在开发的应用程序创建一个简单的演练 我正在遵循grialkit中包含的示例 我有一个页面,名为WalkthroughPage。此页面的XAML如下所示: <?xml version="1.0" encoding="UTF-8"?> <CarouselPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/win
WalkthroughPage
。此页面的XAML如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="WhoseKitchenApp.Views.Walkthroughs.WalkthroughPage"
xmlns:artina="clr-namespace:UXDivers.Artina.Shared;assembly=UXDivers.Artina.Shared"
xmlns:local="clr-namespace:WhoseKitchenApp;assembly=WhoseKitchenApp">
<!-- following line is line 9 -->
<local:Views.Walkthroughs.Templates.WalkthroughStepItemTemplate BackgroundColor="#FF6600" Header="Header text 1" Text="Welcome slide 1" IconColor="#5F7DD4" ButtonBackgroundColor="#5F7DD4" ButtonText="Next" />
<!-- following line is line 11 -->
<local:Views.Walkthroughs.Templates.WalkthroughStepItemTemplate BackgroundColor="#FF6600" Header="Header text 2" Text="Hello slide 2" IconColor="#7C4ECD" ButtonBackgroundColor="#7C4ECD" ButtonText="Next" />
<local:Views.Walkthroughs.Templates.WalkthroughStepItemTemplate BackgroundColor="#FF6600" Header="Header text 3" Text="Last slide, slide 3" IconColor="#E51E61" ButtonBackgroundColor="#E51E61" ButtonText="Finish" />
</CarouselPage>
没有效果。
iOS和Android应用程序的链接器行为均设置为不链接
-
我想知道为什么第二次(和第三次)出现XamlParseException。CarousePage应该使用DataTemplate或多个ContentPages作为其子项,但不能将多个演练步骤ItemTemplates作为CarousePage的子项)。谢谢!这解决了我的问题(直到下一个不相关的错误)。如果你能把它作为一个答案,我可以接受。
<local:WalkthroughStepItemTemplate ...