Windows phone 8 How to be always on one theme even if phone's theme changed

后端 未结 2 1278
自闭症患者
自闭症患者 2020-12-18 00:38

My app is generally designed for dark theme, and I\'m using StaticResources So if the user changes his phone\'s theme to light the app

2条回答
  •  暖寄归人
    2020-12-18 01:33

    I just wanted to recommend Jeff Wilcox's 'Windows Phone Theme Manager' nuget package as an easy way to implement this functionality for both light and dark themes.

    http://www.nuget.org/packages/PhoneThemeManager/

    Just add a function call to the App constructor:

    ThemeManager.ToDarkTheme();
    

    or

    ThemeManager.ToLightTheme();
    

提交回复
热议问题