I have a Resource Dictionary in which I have defined styles and control templates for my application. Now I want to define more Resource Dictionaries to target different screen resolutions, one for each screen resolution. How can I detect client screen resolution and load particular Resource Dictionary in App.XAML?
My Current App.XAML:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources\BlueYellow\BlueYellowTheme.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
I think you can make markupExtension, which returns appropriate resource dictionary uri depending on resolution and use it like this: