如何强制的Windows Phone 8应用在光的主题来运行 [英] How to force windows phone 8 app to be run in light theme
本文介绍了如何强制的Windows Phone 8应用在光的主题来运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我公司开发的Windows Phone应用程序,我想,应用在光的主题中运行,无论所设置的用户。是指有没有什么办法来设置为Windows Phone 8应用默认主题。
I have developed a windows phone application, i want that app to be run in light theme, irrespective of what user have set. means is there any way to set a default theme for the windows phone 8 app.
推荐答案
您可以用杰夫·威尔考克斯的 ThemeManager
You can use Jeff Wilcox's ThemeManager
将它添加到您的项目(有一个的NuGet包使用)和叫它应用()
构造。
Add it to your project (there is a NuGet package available) and call it from App()
constructor.
public App()
{
// Global handler for uncaught exceptions.
UnhandledException += Application_UnhandledException;
// Standard Silverlight initialization
InitializeComponent();
// Phone-specific initialization
InitializePhoneApplication();
ThemeManager.ToLightTheme();
// Other code that might be here already...
}
您可以找到他的网站使用示例。
You can find usage example on his website.
这篇关于如何强制的Windows Phone 8应用在光的主题来运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文