Programmatic addition of a WPF DataTemplate to a ...
If you need (or want) to add a DataTemplate (or related class) object to a WPF dictionary programmatically then you need to understand how XAML data templates are added to the resource dictionary. ......
Original post: Programmatic addition of a WPF DataTemplate to a ... by at xaml templates - Google Blog Search