I'm using themed resources:
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Dark" Source="../Styles/Main/Dark.xaml" />
<ResourceDictionary x:Key="Light" Source="../Styles/Main/Light.xaml" />
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</Page.Resources>
This solution generally works - but only if theme was chosen before starting up the application. If user changes theme during application runtime, all themed colors (ones accessible via StaticResource) are refreshed correctly, but application still uses old theme dictionary (for instance, Dark, when user switched from Dark to Light).
How can I interrupt theme change and load valid theme dictionary?