Change Background of WP7 Application if Theme is altered

后端 未结 5 584
清歌不尽
清歌不尽 2021-01-16 05:19

I need to change the Background Image of my Application if user changes theme from \"Light\" to \"Dark\" or vice-vesa in code behind. I hop

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-16 05:50

    Were you able to do some test on the App.Activate - Deactivate?

    I decided to use a different path to solve the issue of dynamic theme change.

    I've assigned to all text and buttons only system resource colors. For the icons inside the buttons in the window instead of using PNG images-icons I used the in XAML and assing it a Foreground color from system resource.

    For the buttons in the SystemMenuBar there is no issue as they are always on a dark gray background so the black PNG images work just fine.

    Hoping this helps.

提交回复
热议问题