Do you have Blend? When you create a template Blend asks you where you want to define it. You can then choose to define it in a resource dictionary. If not using Blend, I think you just define the template or style in the resource dictionary, then reference it in the XAML.