简体   繁体   中英

ApplicationBar Foreground color not applying

I am working on Windows Phone 8 application.

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 :

在此处输入图片说明

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 .

在此处输入图片说明

It is not possible to change the behaviour of the ApplicationBar in the way you describe.
The ApplicationBar is not a regular control and it is not possible to alter it's behaviour in this way.

If you really, really want to get the behaviour you're after you'll need to create your own replacement for the ApplicationBar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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