Geeks With Blogs
Nat Luengnaruemitchai Geek Blog September 2007 Entries
WPF: Transform trigger into event
Yesterday, I had a problem where I need to hook up an event to a certain data condition. I first thought about EventTrigger. However, it does the other way around. This class is responsible for convert event into trigger. So I digged around WPF architecture to see what I can do and bingo. I found that I can create an attached property with the following construct and then in XAML, you can register for this event by <TextBox Text="Try me"> <TextBox.Style> <Style TargetType="{x:Type ......

Posted On Thursday, September 20, 2007 7:55 AM

Free WPF DataGrid from Infragistics
Andrew Flick announced that Infragistics WPF Express Edition will be free as well. Before this release, xamDataGrid suffered a lot of performance problem. It seems that they have fixed various performance problem. So I think I will give it a try again later. To try it out visit for more information.

Posted On Tuesday, September 18, 2007 9:25 PM

Check whether the application is in DesignMode in WPF
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()).

Posted On Sunday, September 16, 2007 10:25 PM

WPF XBAP Application requires proxy authentication
ClickOnce deployment has problem with Proxy that requires authentication. You might get the following error: (407) Proxy Authentication Required If so, you would need to get a hotfix at For more detail, you can check out at ......

Posted On Sunday, September 16, 2007 10:03 PM

WPF XBAP Application failed to work with ISS Proventia Buffer Overflow (vpatch.exe)

If you try to run any XBAP application on the machine that has ISS Proventia Buffer Overflow Protection (vpatch.exe) installed, you might experience COMException with HRESULT 0xFFFFFFFF. The workaround is to stop vpatch.exe. I hope Microsoft and ISS work together to fix this issue.


Posted On Sunday, September 16, 2007 9:56 PM

Handle leaks in svchost.exe
If you experience bad handle leaks in svchost.exe process like I did, what happened was a bug in a dll that leaks handles when you have some antivirus software installed. It might worth to get a hotfix from Microsoft. It is detailed at KB892489.

Posted On Sunday, September 16, 2007 9:33 PM

Copyright © Nat Luengnaruemitchai | Powered by: