开发者

Overriding PhoneAccentColor doesn't work

开发者 https://www.devze.com 2023-03-03 06:10 出处:网络
I just want to customize the PhoneAccentColor within my application, but it doesn\'t seem to work. I made App Resources looking lik开发者_JAVA技巧e:

I just want to customize the PhoneAccentColor within my application, but it doesn't seem to work.

I made App Resources looking lik开发者_JAVA技巧e:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Utils/Converters.xaml"/>
            <ResourceDictionary Source="Resources/Styles.xaml"/>
        </ResourceDictionary.MergedDictionaries>
        <ViewModels:ViewModelLocator x:Key="ViewModelLocator" d:IsDataSource="True" />
        <Resources:ResourcesWrapper x:Key="ResWrapper" d:IsDataSource="True" />
    </ResourceDictionary>
</Application.Resources>

And in the Styles.xaml I redefined the PhoneAccentColor like this:

<Color x:Key="PhoneAccentColor">#FFFF0000</Color>

But for any reason the default phone accent color is still used. For example I'm using the PerformanceProgressBar from the toolkit which still uses the default color instead of the definied red.

Is there anything I missed?


Solved: Seems like you also have to override within the Styles.xaml.

0

精彩评论

暂无评论...
验证码 换一张
取 消