是否有一个的WinRT“IsInDesignMode的财产? [英] Is there a 'IsInDesignMode' property in WinRT?

查看:133
本文介绍了是否有一个的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.

明白了 - Windows.ApplicationModel.DesignMode.DesignModeEnabled

Got it - Windows.ApplicationModel.DesignMode.DesignModeEnabled

推荐答案

我使用这样的:

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

_isInDesignMode 
    = Windows.ApplicationModel.DesignMode.DesignModeEnabled

要检查当前的发展态势

这篇关于是否有一个的WinRT“IsInDesignMode的财产?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆