“Sometimes binary resources are defined in one assembly (typically a class library), but areneeded in another assembly (another class library or an executable). WPF provides a uniformand consistent way of accessing these resources using the pack URI…
原文 https://stackoverflow.com/questions/28240528/how-do-i-duplicate-a-resource-reference-in-code-behind-in-wpf 如何在WPF后台代码中中复制引用的资源? In my application, I have a color resources. I have one element that uses that color as a dynamic resource in xaml. <Wi…