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