For more information on how to convert a silverligth theme (using VSM) to WPF: http://dotnet.org.za/rudi/archive/2008/10/29/silverlight-love-for-wpf.aspx
From my Window1.xaml, I added the xmlns declaration so I could refer to the datagrid.
We discovered few other potential memory leaks that WPF based application can encounter so I wanted to update my original Finding Memory Leaks in WPF-based applications blog and the sample in that blog with more info on these potential leaks.