开发者

Is there a 'IsInDesignMode' property in WinRT?

开发者 https://www.devze.com 2023-04-10 15:56 出处:网络
I\'m trying to port my application from Phone 7 and can\'t find the wa开发者_高级运维y to detect when control is in Design mode.

I'm trying to port my application from Phone 7 and can't find the wa开发者_高级运维y to detect when control is in Design mode.

Got it - Windows.ApplicationModel.DesignMode.DesignModeEnabled


I am using this:

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

and this

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

to check the current developing situation

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号