我只是添加了一个image控件,代码如下:
<Page x:Class="Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Page1">
<Grid>
<Image Margin="31,55,33,140"Name="Image1"Stretch="Fill"Source="C:\Users\Heqin\Pictures\20088323512853731.jpg" />
</Grid>
</Page>
但是运行的时候会出现异常: 未处理 System.Windows.Markup.XamlParseException
Message: 无法创建在程序集“WpfBrowserApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”中定义的“Page1”的实例。 调用的目标发生了异常。 标记文件中“Page1.xaml”行1位置7处的错误。
该怎样解决呢?多谢!