Overriding a Windows 8 application theme for a specific UserControl

I am developing an application for the Windows Store using the Dark theme, which is great for the main part of the application. However, for the settings popup, I want to match the appearance of the "Permissions" popup, which, as they say, is black on white.

Unfortunately, it is quite difficult to set for each control using a dark theme.

Is there a way to use the "Light" theme by overriding the default application for UserControl, which I use for my settings panel, or is it the only way to do this, to copy all the relevant sections of the theme file for it into UserControl resources?

+7
source share
1 answer

I had the same problem - using a dark theme, as well as using the background for the settings popup. The research that I did also changed nothing. I ended up having to configure the controls so that they displayed correctly on the dropdown menu.

Another thought that I had was that although I did not go this route - use the light theme as the default, but change the style of my application so that the main elements appear dark. This would mean that the departure controls are not subject to restyling. I think it depends on how many controls you use and which way is easier.

If you go the second way, your application obviously loses the ability to change themes on the fly.

+3
source

All Articles