Visual studio Usercontrol找不到设计数据文件?
我有以下文件,它声明找不到我的.xaml文件:Visual studio Usercontrol找不到设计数据文件?,visual-studio,windows-phone-7,xaml,Visual Studio,Windows Phone 7,Xaml,我有以下文件,它声明找不到我的.xaml文件: <UserControl x:Class="MyApp.RectangleTest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expressio
<UserControl x:Class="MyApp.RectangleTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
d:DesignHeight="150" d:DesignWidth="130"
d:DataContext="{d:DesignData SampleData/RectangleSampleData.xaml}">
因此,它声明找不到RectangleSampleData.xaml,但如果我从错误框中获取url并粘贴到运行命令中,它会打开文件,那么Visual Studio有什么用?将包含示例数据的文件添加到解决方案中吗?你能在解决方案资源管理器中看到它吗?是的,它是在解决方案资源管理器中添加的,所以我不明白这一点