Hi there.
I must say I am quite new at WPF. I am building my first real application and I am facing some issues, at the moment with themes. This is the reason of my post.
In order to use a theme, such as ExpressionDark.xaml, I thought it was sufficient to include it at an application level. Therefore, in my App.xaml I added:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Skins/ExpressionDark.xaml" />
</ResourceDictionary.MergedDictionaries>
<myLib:Locator x:Key="Locator" />
</ResourceDictionary>
</Application.Resources>
Here is the first question: I am not sure I am doing the right thing. Is it right to include the ExpressionDark.xaml into my application, in the "skins" folder and to reference it in that way? somewhere else I found something like "System.Windows.Theming.ExpressionDark" etc. Would that be the correct approach?
Anyway, by applying the theme with the above method, I can see almost all my controls being styled in a proper way; I say "almost all" because some of them, like DataGrids or TextBoxes, are not. I checked inside the ExpressionDark.xaml and I see there are styles defined for these components too. So why am I getting this strange behaviour?
I hope I explained everything clearly enough. Let me know if it is not.
Thanks in advance for any help you'll be able to provide.
Cheers,
G.