I'm having a couple of major issues when trying to style the ChildWindow control from the SDK.
First issue:
ChildWindow doesn't pick up implicit styles. I understand why, it's because the actual child window is always a derived class.
I know that I can just use an explicit style instead and that's my current solution, but is there any other way to work around this problem so that I don't have to remember to explicitly tag all child windows with the same common style?
Second issue:
We're using Prism 4 and I have a child window instance in a module that is loaded dynamically by the Prism infrastructure. It picks up the explicit child window style, but it doesn't pick up any other implicit styles defined in the shell's App.xaml (such as the TextBox control template).
This only appears to be a problem inside dynamic modules, it's fine with shell-based windows. Any ideas why this is happening and what I can do to fix it?