本文介绍了'Microsoft.CompactFramework.Design.UnsafeControl'没有名为...的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我有一个众所周知的问题,但这次是特定的情况。
我们有一个Windows CE 5程序集,我们称之为A.它包含其他内容一个CustomButton控件。 CustomButton包含一些枚举属性。要使按钮渲染,我当然将DesktopCompatible属性添加到designtimeattributes文件中。在同一个程序集A中,我们有一个控件,它使用CustomButton并且它正确呈现。
另一方面,我们有一个程序集B,我们也有一些控件,它使用程序集A中的CustomButton。在这种情况下,我们遇到了标题中提到的问题(当试图查看设计器中的控件时)。更像是:
类型' Microsoft.CompactFramework.Design.UnsafeControl'没有名为'Shape'的属性。 解决方案 hi all, i have a problem that is well known, but this time the case is specific.
We have a Windows CE 5 assembly, let's call it A. It contains among other things a CustomButton control. CustomButton contains some enum properties. To make the button render i certainly added DesktopCompatible property to designtimeattributes file. In teh same assembly A we have a control, that uses CustomButton and it renders correctly.
On the other hand we have an assembly B, where we also have some control, that uses CustomButton from assembly A. And in this case we experience a problem (while trying to see the control in designer) that is mentioned in the title. more less something like:
The type 'Microsoft.CompactFramework.Design.UnsafeControl' has no property named 'Shape'. 解决方案
这篇关于'Microsoft.CompactFramework.Design.UnsafeControl'没有名为...的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-30 02:37 |
|