开发者

how to change the color of the title bar in a wp7 app?

i have a question, i need to change the color of the title bar in a WP7 app.

here is my problem: i have the white theme enabled. then i generate a app and make the background black. when i start the app now开发者_运维问答, the title bar is white and that dont looks good, how can i change the color of the title bar in black theme?


In Mango / 7.1, you can set the BackgroundColor property of SystemTray. If you're targetting 7.0, your only choice is to hide the SystemTray entirely using SystemTray.IsVisible.


In code behind :

    SystemTray.BackgroundColor = System.Windows.Media.Colors.Orange;
    SystemTray.ForegroundColor = System.Windows.Media.Colors.Blue;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜