I have a WPF DLL being called from an unmanaged DLL. The WPF DLL has a dialog that has been translated (two sets of .resx files).
If I call the WPF DLL from a WinForm shell, or another WPF shell, I can force the dialog to a particular language (.resx file) by setting the Culture of the current thread.
However, when calling the WPF DLL (through interop - COM) from the C++ DLL, I can't get the WPF dialog to switch to any language other than the default.
I don't necessarily need to read the current system culture, because the unmanaged DLL does it differently. I would like to tell the WPF DLL what language to use when I run it.
How can I force it to load with a particular language at runtime?