I've download Kevins 'Bag of Tricks', had a look at InfoTextBox, and tried to add this to my own assembly for testing how to extend controls.

The InfoTextBox consists of two parts: a c# class extending the existing TextBox and a ControlTemplate for this new class.

The c# part does work nicely, but I got problems with the ControlTemplate in Xaml - somehow this is ignored it seems, or does not load.

My control does not show up, and Snoop shows it to be there, but without anything inside, so it seems not to find the controltemplate?

In the 'Bag of Tricks' the controltemplate is located in a subfolder Themes in a file 'generic.xaml', but I can't see where these resources are loaded, or how they are connected to the InfoTextBox.

How do I load a ResourceDictionary?

Sam