Mixed Languages: The Right Tool for The Right Job

Tuesday, June 16th, 2009

The N-body modeling code and visualization I’ve been working on finally got off the ground in some sort of reasonable form last night. Here you can see it running with 5000 stars at over 30 frames a second. It’s been working from the start (agile/TDD isn’t something you just write about) ...

Using the EntLib Validation Block with WPF Part 2: Configuration Based Validation

Saturday, January 31st, 2009

In part 1 I covered using the EntLib Validation Block in combination with the Presentation Model pattern described in the p&p’s Composite Application Guidance for WPF (Prism). The end result was a presentation model decorated with attributes which describe how to validate the model and surface validation errors to the ...

Using the EntLib Validation Block with WPF Part 1: Attribute Based Validation

Wednesday, December 24th, 2008

Getting validation working with data binding in WPF is pretty simple as .NET 3.5 added support for IDataErrorInfo. You can read more about this on the WPF SDK blog and in the databinding overview article on MSDN. This post outlines how you can go about extending this validation approach to ...

Gotchas: Debugging WPF Data Binding

Thursday, December 18th, 2008

I've been playing around with WPF data binding recently and was struggling a bit with how to debug it when things weren't working right. Translation: cursing a lot when everything was hawked and I couldn't figure out why. Suppose I have the following binding that doesn't work the way I expect. ...