CodeMash 2011 was great!! I really enjoyed the talks, the venue, the food, and the chance to meet up with friends. So, in an effort to remember everything, I'm recapping things on my blog. This is not exhaustive, nor is it all that polished. It's kind of a high level summary with links to resources... Continue Reading →
Cancelling BackgroundWorker – Don’t watch e.Cancel
Just a quick note about an issue that seems deceptively simple to introduce… If you are using the BackgroundWorker in your app and you've set it up to support cancellation, be careful how you write your code that watches for cancellation. BackgroundWorker has an event DoWork, which passes DoWorkEventArgs. This derives from CancelEventArgs, which has... Continue Reading →
WPF & Entity Framework 4 – Tales from the Trenches
I recently presented "WPF & RF4 - Tales from the Trenches" at the Cleveland .NET SIG. This presentation reviews tips, tricks, and lessons learned from building real world apps with Windows Presentation Foundation 4.0 and Entity Framework 4.0. Whether you’re doing desktop, Silverlight, or web development, the EF T4 template tweaks, MVVM usage, Undo/Redo implementation,... Continue Reading →
MUF is Live on CodePlex! (Monitored Undo Framework)
The Monitored Undo Framework (MUF) is now available on CodePlex! First of all, I'd like to offer a a big thanks to my client, who allowed me to make this available. MUF is a library for implementing Undo / Redo. It was written in tandem with a WPF application, but should work ok in Silverlight... Continue Reading →
LinqKit and Dynamically building arbitrarily complex Linq Queries
In some cases, I need to be able to build a query that has a variable set of OR conditions. This is not simple with the default language constructs and extension methods. It’s simple to dynamically build an expression that includes AND parameters, because that is what the WHERE() extension method does. Not so easy for... Continue Reading →