C# xamarin旋转木马显示一些外部页面
我有一个简单的问题,如何在carouselPage中添加来自不同文件夹的外部页面C# xamarin旋转木马显示一些外部页面,c#,xaml,xamarin,carousel,C#,Xaml,Xamarin,Carousel,我有一个简单的问题,如何在carouselPage中添加来自不同文件夹的外部页面 <?xml version="1.0" encoding="utf-8" ?> <CarouselPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:TutoSuit
<?xml version="1.0" encoding="utf-8" ?>
<CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TutoSuite;assembly=TutoSuite"
x:Class="TutoSuite.navigation.CrouselPage">
<local:MainPage/>
</CarouselPage>
这段代码工作得很好,但当我试图访问文件夹中的其他页面时,而不是像这样直接访问根目录。客户这里是一个文件夹,我有我所有客户的页面
<?xml version="1.0" encoding="utf-8" ?>
<CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TutoSuite;assembly=TutoSuite"
x:Class="TutoSuite.navigation.CrouselPage">
<local:Client.ClientFirstpage/>
</CarouselPage>
我有一个错误:
错误位置7:7。在xmlns clr命名空间中找不到类型客户端:TutoSuite;组装=钛白钨矿
有人能帮我吗?提前感谢要修复错误,必须添加对客户端命名空间的引用,因为不允许使用内部命名空间local:Client.ClientFirstpage 第一步是添加客户端命名空间引用: xmlns:client=clr命名空间:TutoSuite.client 然后将此引用用于ClientFirstpage
<?xml version="1.0" encoding="utf-8" ?>
<CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TutoSuite;assembly=TutoSuite"
xmlns:client="clr-namespace:TutoSuite.Client"
x:Class="TutoSuite.navigation.CrouselPage">
<client.ClientFirstpage/>
</CarouselPage>