Paul Stovell’s XAML and WPF Coding Guidelines
Paul Stovell has written an excellent post about XAML and WPF coding guidelines:
http://www.paulstovell.net/blog/index.php/xaml-and-wpf-coding-guidelines/
I think his section on structuring resources is specifically interesting. Family.Show’s AppStyles.xaml Resource Dictionary could’ve benefited from Paul’s advice. As we customized the look and feel of the application more and more, the AppStyles got bigger and disorganized.
Blend has Resources panel that shows all the resource dictionaries found in the current open project. By organizing the shared resources by types as Paul described, it would’ve made it easier to find the resources and maintain them.
However, I disagree with breaking out page specific resources into their own resource XAML file. Original I went down this path as well and it added more bloat to the project and the application more difficult to work with in Blend. I would keep the page/window specific resources in the .Resources section of the page/window.