![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net
who_i250
这个作者很懒,什么都没留下…
展开
-
正则表达式学习笔记
因项目开发需要,用正则表达式解析点东西。现将收集到的参考资料汇总如下:正则表达式30分钟入门教程(入门)(非常好用的教程,真的是30分钟搞定)正则表达式之道(入门)竹笋炒肉: 正则表达式学习笔记关于正则表达式学习 来自 Awflasher,介绍了一些相关正则表达式测试工具。REGex TESTER 一个英文版的正则表达式测试工具。附有一些常见例子。转载 2009-09-03 17:58:00 · 446 阅读 · 0 评论 -
Interop Object在.Net中的引用计数问题
如何正确的释放Interop reference是一个有趣的问题,有时候会让程序运行的莫名其妙。基本上,我们在.Net中访问的每一个COM对象都有一个称为RCW (Runtime Callable Wrapper))的包装。一个RCW对应一个COM实例,其是分配在managed heap上的一种轻量级对象,然而它所包装的对象确是分配在native heap上的。RCW对象同样有一个名为refCou翻译 2010-03-08 18:05:00 · 1567 阅读 · 0 评论 -
用C#中用默认浏览器打开网址
在C#桌面程序中用下面的方法打开网址可能会出现System.ComponentModel.Win32ExceptionSystem.Diagnostics.Process.Start(sUrl); 这个异常是随机并且会看到一个空白的IE窗口,网页无法打开。找了一下相关的信息:Launch URL in Default Browser using C#Opening a原创 2010-01-18 17:58:00 · 1745 阅读 · 0 评论 -
WPF控件中位图模糊问题
由于种种原因,WPF控制中位图模糊的问题很严重。http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx对于其根本原因,是因为WPF的显示绘制是独立于设备的。http://support.microsoft.com/kb/960015从下面的文章中找到一种简单的解决办法,可以对付大多数情况。翻译 2009-11-19 15:13:00 · 1761 阅读 · 0 评论 -
[WPF] Popup your control
Popup your controlhttp://blogs.msdn.com/wpfsdk/archive/2007/04/27/popup-your-control.aspx转载 2009-10-16 18:44:00 · 438 阅读 · 0 评论 -
[WPF] Binding ContextMenu to its logical Parent
ContextMenu是个非常奇怪的家伙,它一直处于组件树的根部。 http://blogs.charteris.com/blogs/patl-closed/archive/2007/02/01/Binding-ContextMenu-to-its-logical-Parent.aspx转载 2009-10-16 18:43:00 · 575 阅读 · 0 评论 -
[WPF] BitmapEffects Issue
BitmapEffects are not supported on popupshttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/71a1da61-9e6e-47e5-be20-6190aedc3c95 Never using BitmapEffects on live contenthttp://social.原创 2009-10-15 14:41:00 · 391 阅读 · 0 评论 -
BitmapImage.UriSource binding doesn't work ...
最近做WPF开发中遇到很多怪事,越发感觉WPF不是一个足够成熟的技术。 如果你的代码中还有这样的绑定:会在运行中遇到错误Property UriSource or property StreamSource must be set. 需要使用一个converter将URL对象转换成ImageSource,详见http://www.wiredprairie.u原创 2009-10-13 11:15:00 · 1054 阅读 · 0 评论 -
[WPF] How to dynamic bind Menuitem's Header and Icon
There is no way to bind Menuitems Header and Icon at the same time in WPF 3.5.I post this question at MSDN:http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/13dd8f46-90e4-4530-9766-17336原创 2009-10-14 10:24:00 · 649 阅读 · 0 评论 -
Why WPF's Text is Blurry?
比较权威的结论在这里,一句话,等WPF4.0吧,其它无解。 https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=380919 中文看这里 http://dev.yesky.com/48/7675048.shtml翻译 2009-09-23 15:35:00 · 488 阅读 · 0 评论 -
Much Improved .NET 4.0 WPF Text Rendering
转载于 http://karlshifflett.wordpress.com/2009/10/22/much-improved-net-4-0-wpf-text-rendering/In .NET 4.0 WPF text rendering has been greatly improved.However this new feature is not enabled by default.You can read the complete feature write up on the WPF转载 2010-08-11 14:10:00 · 609 阅读 · 0 评论