I think you need a TargetType="Grid" on your <ControlTemplate>
:
<ControlTemplate x:Key="myWindowTemplate TargetType="Grid">
....
Also, Grid isn't a ContentControl so I don't think the ContentPresenter you put in the template will behave the way you expect - it could even be causing the error.
James Cadd
2009-06-12 11:58:59