为什么我会看到“属性‘页面’”?没有可访问的设置器”对于一个简单的在 Expression Blend 4 中?
我有一个 XAML 文件,我已将其缩小以找到此问题的原因,使其达到以下最小情况:
<FixedDocument
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
<PageContent>
</PageContent>
</FixedDocument>
它在 KAXAML 中可以正常打开,但是当我在 Expression Blend 4 中打开相同的文件时,我在以下位置收到以下 2 个错误:
标记:
- 属性“Pages”没有可访问的 setter
- 无法分配指定的值。预期类型如下:“PageContentCollection”。
没有代码隐藏。唯一有趣的是这个文件存在于 Winforms 项目中,并且我应用了以下 hack: http://social.expression.microsoft.com/Forums/en-US/blend/thread/c726522f-c721-42a7-8bf1-c73360edaa60 - 但该文件也会出现问题在一个直接的 WPF 项目中。
有谁知道为什么,并解决这个问题?
I have a XAML file which I have pared down to find the cause of this issue to the following minimal case:
<FixedDocument
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
<PageContent>
</PageContent>
</FixedDocument>
It opens fine in a KAXAML, but when I open the same file in Expression Blend 4, I get the following 2 errors at the <PageContent>
tag:
- The property 'Pages' does not have an accessible setter
- The specified value cannot be assigned. The following type was expected: 'PageContentCollection'.
There is no CodeBehind. The only interesting thing is that this file exists in a Winforms project, and I have applied the following hack:
http://social.expression.microsoft.com/Forums/en-US/blend/thread/c726522f-c721-42a7-8bf1-c73360edaa60 - but the problem also happens with the file in a straight WPF project.
Does anyone know why, and have a fix for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个错误由来已久,而且似乎不会很快得到修复:
确认在 VS2010 和 VS2010 中仍然存在表达混合4。
This bug is as old as time and it doesn't appear it will be fixed any time soon:
Confirmed still to exist for both VS2010 and Expression Blend 4.