问题
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