我的 Xamarin.Forms 遇到问题,不想再加载,它一直给我错误消息
Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'.
我的 ATM 代码是
MainPage.xaml.cs:
public partial class MainPage : MasterDetailPage
{
public MainPage()
{
InitializeComponent();
}
}
主页.xaml
<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Hoofdstuk04"
x:Class="Hoofdstuk04.MainPage">
<MasterDetailPage.Master>
<ContentPage Title="Master">
<StackLayout>
<!-- Click event method nog toevoegen -->
<Button Text="RandomColorPage"></Button>
<Button Text="CarouselPage"></Button>
</StackLayout>
</ContentPage>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<NavigationPage>
<x:Arguments>
<!--<local:ImageViewerPage />-->
</x:Arguments>
</NavigationPage>
</MasterDetailPage.Detail>
</MasterDetailPage>
有谁知道为什么我收到此错误?我唯一改变的是代码中 MainPage 的继承内容页 to 主详细信息页
为了防止“无法将类型为‘System.RuntimeType’的对象转换为类型为‘Mono.Debugger.Soft.TypeMirror’”的解决方法:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)