XAML 分析异常
本文关键字:异常 XAML | 更新日期: 2023-09-27 18:32:54
我
搜索了又搜索了答案,我仍然无法找到答案。 这是我的代码
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace GTA_5_Guide
{
public partial class MainPage : PhoneApplicationPage
{
//Constructor
public MainPage()
{
//Loads the page onto the screen
InitializeComponent(); //This is were the error is thrown
}
}
}
引发的错误是"System.Windows.ni 中发生了类型为'System.Windows.Markup.XamlParseException'的第一次机会异常.dll"
一切正常,直到我决定不再使用我在项目中找到的网页,不,它会抛出此错误
10 次中有 9 次 这通常只是设计器文件不继承相同的类型。
确保主页根 XAML 控件是面对面的<phone:PhoneApplicationPage...