
Hi,
I need to change the style of some of the native controls, and for some reason I seem to fail to do so for some of the styles. ThemeManager.AreNativeThemesEnabled is set to true, and the ResourceDictionaries are included.
This works like a charm:
<Style x:Key="{x:Static themes:SharedResourceKeys.TabItemStyleKey}" TargetType="{x:Type TabItem}">
</Style>
<Style x:Key="{x:Static themes:SharedResourceKeys.TabControlStyleKey}" TargetType="{x:Type TabControl}">
</Style>
However, if I try to do this to ListBoxItem, it reverts back to the native style without the actipro touch, with any modifications I might add.
<Style x:Key="{x:Static themes:SharedResourceKeys.ListBoxItemStyleKey}" TargetType="{x:Type ListBoxItem}">
</Style>
Seems to be the same issue with ListBox. Haven't gotten around to doing the same to ListViewItem, etc. If I remove the "whole" style, actipro native style is used. I don't need to add any setters for the style to revert back to the native WPF style. There might be other styles that are affected in the same way, though i have not yet identified them
Any ideas?
Bjørnar Sundsbø