Is there a 'IsInDesignMode' property in Wi

2019-04-18 20:57发布

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条回答
甜甜的少女心
2楼-- · 2019-04-18 21:52

I am using this:

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

and this

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

to check the current developing situation

查看更多
登录 后发表回答