MEF, WPF and injecting data templates

I'm not sure if this will be of any use to anyone else however we had a scenario where we wanted to inject data templates into a window in WPF. The data templates will be written by third parties so we can't include the data templates directly in the window.