![](/img/trans.png)
[英]How to Set ApplicationBar Foreground using PhoneThemeManager
[英]ApplicationBar Foreground color not applying
我正在使用Windows Phone 8應用程序。
我有帶圖標的應用程序欄,我也為圖標設置了背景和前景顏色。
ApplicationBar.BackgroundColor // Orange
ApplicationBar.ForegroundColor // White
所以現在應用程序欄看起來像這樣:
現在我的phone theme settings
將Accent color as pink
設置Accent color as pink
因此當我點擊圖標時,它看起來像這樣:
但是,當我點擊圖標時,即使我的“電話”設置“ Accent color is pink or some other color
並且背景設置為“ light or dark
,我仍希望效果是這樣。
無法按照您描述的方式更改ApplicationBar的行為。
ApplicationBar不是常規控件,因此無法以這種方式更改其行為。
如果您確實要獲得所需的行為,則需要為ApplicationBar創建自己的替換項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.