I have a Custom Controls Library (ex. MyCustomControls.dll) that is a plugin to a 3rd party application. It outputs as a class library and is invoked by the 3rd party application at runtime. My issue is the custom styles I have defined for various user controls like listviewitem, textblock now cannot be loaded at the application level.
How can I add my custom styles to the resource lookup hierarchy such that all the controls in the library will use my custom styles?
Example, if I define the style below, all the controls in MyCustomControls.dll will not see it when they are created. But if I add MyCustomControls.dll to an application and load it in the application resources, the style gets applied.
Note: 3rd party application is not a WPF application. Application.Current returns null at runtime.