简体   繁体   English

ApplicationBar前景颜色不适用

[英]ApplicationBar Foreground color not applying

I am working on Windows Phone 8 application. 我正在使用Windows Phone 8应用程序。

I have Application Bar with icon, I have set the Background and Foreground color to the icons as well. 我有带图标的应用程序栏,我也为图标设置了背景和前景颜色。

ApplicationBar.BackgroundColor // Orange

ApplicationBar.ForegroundColor // White 

So now the Application bar looks like this : 所以现在应用程序栏看起来像这样:

在此处输入图片说明

Now my phone theme settings i have set the Accent color as pink so when i tap on the icon it looks like this : 现在我的phone theme settingsAccent color as pink设置Accent color as pink因此当我点击图标时,它看起来像这样:

在此处输入图片说明

But when i tap on the icon i want the effect to be is like this, even if my Phone setting Accent color is pink or some other color and background is set to light or dark . 但是,当我点击图标时,即使我的“电话”设置“ Accent color is pink or some other color并且背景设置为“ light or dark ,我仍希望效果是这样。

在此处输入图片说明

It is not possible to change the behaviour of the ApplicationBar in the way you describe. 无法按照您描述的方式更改ApplicationBar的行为。
The ApplicationBar is not a regular control and it is not possible to alter it's behaviour in this way. ApplicationBar不是常规控件,因此无法以这种方式更改其行为。

If you really, really want to get the behaviour you're after you'll need to create your own replacement for the ApplicationBar. 如果您确实要获得所需的行为,则需要为ApplicationBar创建自己的替换项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM