缺少Windows 8应用商店应用程序,类型为.IsClass和System.ComponentModel.DesignerProperties.IsInDesignTool
我正在调查Windows 8应用商店应用程序开发,在查找以下成员时遇到问题 Type.IsClass System.ComponentModel.DesignerProperties.IsInDesignTool VisualStudio声称它们不存在,但MSDN建议它们应该存在 我显然错过了一件愚蠢的事情:有人能给我指出正确的方向吗 问候 John。属性已移动到类中。基本上你需要更换缺少Windows 8应用商店应用程序,类型为.IsClass和System.ComponentModel.DesignerProperties.IsInDesignTool,windows,windows-store-apps,Windows,Windows Store Apps,我正在调查Windows 8应用商店应用程序开发,在查找以下成员时遇到问题 Type.IsClass System.ComponentModel.DesignerProperties.IsInDesignTool VisualStudio声称它们不存在,但MSDN建议它们应该存在 我显然错过了一件愚蠢的事情:有人能给我指出正确的方向吗 问候 John。属性已移动到类中。基本上你需要更换 bool result = type.IsClass; 有 是System.Reflection命名空间中的
bool result = type.IsClass;
有
是System.Reflection命名空间中的扩展方法,no在System.Type上不明显可见,除非您已经使用System.Reflection
IsInDesignTool
属性具有:
bool result = type.GetTypeInfo().IsClass;
bool result = Windows.ApplicationModel.DesignMode.DesignModeEnabled;