Order in Chaos: Handling unhandled exceptions in a WPF application

Sunday, August 28, 2011

Introduction So you want to handle somehow all the unhandled exceptions in your application. Usually you want to accomplish one of the following: Log the exception for later diagnostics Present the user an unhandled exception UI, nicer than the default You heard there’s an event you should register, or maybe you find one by mistake, but is it the correct one? Did you know there are four (!) different events for handling unhandled exceptions in the .NET framework? So what is the...

Order in Chaos: Dependency Property Value Resolution

Friday, December 24, 2010

One of the strength points for WPF is the ability to set a property value using a wide range of methods. Unfortunately, this variety makes it hard to understand how a WPF dependency property gets its final value. Hopefully this post will help organize this issue. This post is based on the comprehensive MSDN article “Dependency Property Value Precedence”. Long Story Short Can you show an example please? In order to see this in action let’s create a WPF application that has all these scenarios used. For this to be possible...

Order in Chaos: .NET Collections

Friday, October 8, 2010

This is a review of the current available collection types in .NET Framework 4.0 Note that I don’t plan to explain all the history of the different collection. If a class is obsolete, that is enough information. The intention is to use this post as a reference when you need to decide which type of collection you should use. Also, I’m not going to give the complexity of each function. You can find such information in the relevant class documentation on MSDN. Anyway, you can deduce it yourself, since this it...
3 comments