1

Creating your own ContentTemplates in WPF

Posted in .Net, WPF at December 23rd, 2009 by Gerrod / 1 Comment »

This isn’t something that I do often, but rolling your own look-and-feel by starting a ContentTemplate from scratch can be a right pain in the botty. Today I found this excellent sample project from Microsoft, which contains custom ContentTemplates for most UI controls in the framework. It provides an excellent starting point for creating your own customized controls.

Check it out!

1

Quick WPF Performance Statistics

Posted in .Net, C# at December 23rd, 2009 by Drew / 1 Comment »
Just thought I’d put out some quick WPF performance statistics thanks to Microsoft. You can download the entire slideshow here.
  • DependencyProperty is x3 faster than INotifyPropertyChanged
  • ObservableCollection accesses single items 90 times faster than List
  • ObjectDataProvider is x20 smaller than XmlDataProvider

Microsoft also have some other good tips over here too.
I’d like to see some real world statistics on the differences between using static vs dynamic resources too. Anybody know of any?