I created a class library which is contained of WPF Windows and some user controls inherited from my c# classes that helps me to customize certain wpf controls.
Now
Since i can't yet comment but i've used this answer twice now:
To add to nmariot's answer:
Tip 1
to reach the .csproj file from visual studio
right click project -> click 'unload project'
right click project [in unloaded state]-> click 'edit 'filename.csproj''
Tip 2
to avoid error warnings once resource dictionary has been added:
add reference to System.Xaml