I'm working on an app, and want to apply my own style to it. XAML have something called theme directories which I trying to use for my themes. As it turns out, windows has 3 predefined themes; Light, Dark, and HighContrast. When I set the x:Key property on the Resource Directory containg the theme I want to use to something else than one of the 3 predefined or Default, it does not work. Anyone know why?
<ResourceDictionary.ThemeDictionary>
<ResourceDictionary x:key="Default"> // Does work
(...)
</ResourceDictionary>
<ResourceDictionary x:key="MyOwnThemeKey"> // Does not work
(...)
</ResourceDictionary>
</ResourceDictionary.ThemeDictionary>