是否有一个的WinRT“IsInDesignMode的财产?有一个、财产、WinRT、IsInDesignMode

由网友(薄唇)分享简介:我是从Phone 7的尝试口我的应用程序并不能找到检测控制时,在设计模式的方式。I'm trying to port my application from Phone 7 and can't find the way to detect when control is in Design mode.明白了 -...

我是从Phone 7的尝试口我的应用程序并不能找到检测控制时,在设计模式的方式。

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

明白了 - Windows.ApplicationModel.DesignMode.DesignModeEnabled

Got it - Windows.ApplicationModel.DesignMode.DesignModeEnabled

推荐答案

我使用这样的:

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

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

要检查当前的发展态势

阅读全文

相关推荐

最新文章