Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 Phone 7 移植我的应用程序,但找不到检测控件何时处于设计模式的方法。
知道了 -Windows.ApplicationModel.DesignMode.DesignModeEnabled
Windows.ApplicationModel.DesignMode.DesignModeEnabled
我正在使用这个:
if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator)
还有这个
_isInDesignMode = Windows.ApplicationModel.DesignMode.DesignModeEnabled
检查当前的发展情况