将此文件添加到工程里即可:DesignTimeAttributes.xmta
<?xml version="1.0" encoding="utf-16"?>
<Classes xmlns="http://schemas.microsoft.com/VisualStudio/2004/03/SmartDevices/XMTA.xsd">
<Class Name="Namespace.FrmBase">
<DesktopCompatible>true</DesktopCompatible>
</Class>
</Classes>
<?xml version="1.0" encoding="utf-16"?>
<Classes xmlns="http://schemas.microsoft.com/VisualStudio/2004/03/SmartDevices/XMTA.xsd">
<Class Name="Namespace.FrmBase">
<DesktopCompatible>true</DesktopCompatible>
</Class>
</Classes>