0
嗨我尝试开发与Xamarin我的第一个跨应用程序,我尝试做一个选项卡式页面。 我的XAML代码是Xamarin表格选项卡式页面
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="using:MyTimesheet.Pages"
x:Class="MyTimesheet.MainRootPage">
<!--Pages can be added as references or inline-->
<local:Page1></local:Page1>
<local:Page2></local:Page2>
</TabbedPage>
我的第1页第2页的XAML代码是相同的:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyTimesheet.Pages.ClientiPage">
<ContentPage.Content>
<StackLayout>
<Label Text="Welcome Clienti" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
我发现,用我的计算策略,但是当我建立一个解决方案我的错误更例如:
找不到类型“TabbedPage”。 找不到类型'local:page1'。
有什么不对? 三江源认为
新的错误 - 新的截图:
可以打印确切的错误语句并在此处上传? – lowleetak
我有视觉工作室不是英文,所以我traslate错误 –
尝试检查xmlns:本地。它应该是这样的格式:xmlns:local =“clr-namespace:MyTimesheet.Pages; assembly = MyTimesheet” – lowleetak