.net – WinRT中是否有“IsInDesignMode”属性?

我正在尝试从Phone 7移植我的应用程序,无法找到控制在设计模式时的检测方式.

得到它 – Windows.ApplicationModel.DesignMode.DesignModeEnabled

我使用这个:

   if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator)

和这个

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

检查当前的发展情况

翻译自:https://stackoverflow.com/questions/7624351/is-there-a-isindesignmode-property-in-winrt

转载注明原文:.net – WinRT中是否有“IsInDesignMode”属性?