Is there a 'IsInDesignMode' property in WinRT?

安稳与你 提交于 2019-12-10 01:36:44

问题


I'm trying to port my application from Phone 7 and can't find the way to detect when control is in Design mode.

Got it - Windows.ApplicationModel.DesignMode.DesignModeEnabled


回答1:


I am using this:

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

and this

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

to check the current developing situation



来源:https://stackoverflow.com/questions/7624351/is-there-a-isindesignmode-property-in-winrt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!