One of the strengths of WPF is its data binding capabilities. Although data binding is not new (in fact winforms has some limited data binding support) WPF takes it to the next level. In this post I’ll show you how to bind an element to a property defined in the code behind. How it’s done? … Continue reading How to data bind to property in WPF
Tag: C#
Poor developer’s performance profiler
In the last post I wrote about a simple method that can help .NET developers micro measure the memory consumption of their application, in this post I want to show a way to measure application performance. Before I start I want to state here and now that there is no substitute to using an actual … Continue reading Poor developer’s performance profiler
Poor developer’s memory profiler
Some tools save you money. The rule of the thumb is that if you save X days using the tool and your salary is Y dollars (or whatever you get paid with) per day then the tool is worth X times Y - it’s that simple. Over the years I’ve used several tools to do … Continue reading Poor developer’s memory profiler
XmlWriter that automatically close elements using IDisposable
System.Xml.XmlWriter provides an easy and lightweight way to write xml strings, unfortunately it has a little gotcha. consider the following xml string (borrowed from IronPython in Action): Using XmlWriter the following code is needed to create that string: Keep in mind the fact that the code above only creates 5 lines of xml, and as … Continue reading XmlWriter that automatically close elements using IDisposable
Three different ways to raise events in C#
The Event model in C# finds its roots in the event programming model that is popular in asynchronous programming. The basic foundation behind this programming model is the idea of "publisher and subscribers." In this model, you have publishers who will do some logic and publish an "event." Publishers will then send out their event … Continue reading Three different ways to raise events in C#
How-to Render managed (.NET) form using native DirectX
Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Although a managed DirectX exist some of the time you need the power of C++ when using it. In the past I used DirectX with C++ for image processing and video … Continue reading How-to Render managed (.NET) form using native DirectX
New StackOverflow Notifier Released
This is a maintenance release until I finish the new features I’ve promised. Changes: Added Proxy Support so that users behind firewall can use SO-Notifier. I’ve done a few changes to reduce the bandwidth overhead of the application. As suggested by Jeff Atwood I’m using gzip http header specified to reduce network bandwidth. It … Continue reading New StackOverflow Notifier Released
StackOverflow Notifier update
Due to a (stupid) bug I accidentally caused SO notifier to poll the StackOverflow site every half a second. The new version has a polling interval of once per hour. In case you want to use StackOverflow Notifier use this newer version instead so your IP won't be banned.
If you’re using StackOverflow Notifier – Read this!
This morning my client has stopped working on my computer. After checking the usual suspects (network connection, proxy server etc.) I discovered that only http://www.stackoverflow.com blocks my web requests. After a quick search on the Internet I found the following post on StackOverflow blog: We’ve noticed there are a number of users running a script … Continue reading If you’re using StackOverflow Notifier – Read this!
StackOverflow Notifier
Update: New version has been released in case you're using the last version (V1.0.0.0) please use this version instead. In case you don't know what StackOverflow is all about you can read about it At the site's About Page: Stack Overflow is a programming Q & A site that's free. Free to ask questions, free … Continue reading StackOverflow Notifier

