I was also interested in agreements for our WPF projects. This pdf was very useful and contains a part about resource management. The author differs from the opinion of BTownTKD:
Before I get into organizing resources, I need to discuss the various philosophies of dividing resources into files. I group them into two approaches:
- A physical or type-based organization where all instances of a type are grouped together. For example, a resource dictionary will include all constants (or metrics), a separate file for all colors, another file for brushes, etc. I tried this several times and for me it didn't work. This leads to layoffs when you end up including all files and duplicating resources around. Itβs also more difficult to navigate through links (for example, from color to brush).
- A logical organization in which resources are grouped by file to perform a logical task. For example, a group includes all resources for a theme, or all resources used for a specific set of controls (for example, charts) are grouped together as a logical object. Resource files will contain constants, colors, brushes, styles, etc. This approach has proven more effective for many projects, so it is discussed in this article.
source share