In Windows Forms application, we can use Control.IsInDesignMode or LicenseManager.UsageMode == LicenseUsageMode.Designtime to check whether your code is executing in DesignMode or not. You might wonder how would you do the same in WPF. Fortunately, Cider and Blend offers a similar functionality. You can test the following condition DesignerProperties.GetIsInDesignMode(new DependencyObject()).

http://geekswithblogs.net/mrnat/archive/2007/09/16/115407.aspx

大致意思是说  LicenseManager.UsageMode == LicenseUsageMode.Designtime 这个东东,在WPF下是没办法判断的

要用这个来判断 DesignerProperties.GetIsInDesignMode(new DependencyObject())

最新文章

  1. Delphi的 Format格式化函数
  2. 定制Eclipse IDE之界面篇
  3. tomcat中配置jmx监控
  4. Element selector doesn't have required
  5. HDU2841 Visible Trees(容斥原理)
  6. sys模块的初步认识
  7. centos6.4安装配置vpn服务器步骤详解
  8. apache2.4下载与安装
  9. HTTPS反向代理嗅探
  10. window 使用git 非ssh key 面密码登录
  11. Apache2.4 + Tomcat7 负载均衡配置
  12. 【翻译】在Ext JS应用程序中使用自定义图标
  13. Linux基本操作——文件相关
  14. SVN密码找回 完美方案
  15. ON DUPLICATE KEY UPDATE单个增加更新及批量增加更新的sql
  16. Python——反射
  17. Hibernate 再接触 树状结构设计以及学生课程成绩表的设计
  18. Hadoop Mapreduce 参数 (一)
  19. Spring AMQP 源码分析 08 - XML 配置
  20. King's Game---hdu5643(约瑟夫环)

热门文章

  1. windows2012安装sql2012报错
  2. webpack hmr
  3. 【php】 get 和 post 比较
  4. python 学习总结4
  5. PAT Basic 1045
  6. css3小代码
  7. Java-转换Unicode和utf-8
  8. 【php学习之路】微信公众帐号
  9. find_element——By 元素定位
  10. 去掉WordPress顶部工具条