I have the following resources XML in my grid:
<Grid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/PresentationFramework.Classic;component/themes/classic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Grid.Resources>
And this works, I load in the classic theme. But the classic theme button backgrounds are very white? Is there any way I can change the default background color of buttons in this theme?
You could use styles to set only the background color to something different.
The key here is to use
BasedOn="{StaticResource {x:Type Button}}", as this will make sure that we base the Button on the currentstyle/theme. In this case that would beClassic. If we assign no value, it will simply base it on the original theme, which would beAero.I normally have an XAML file where I store all my custom theme data and load it
In this case it would contain the following