Friday, February 13, 2015

Manage the Windows Phone Theme

Wouldn't it be great if you could control the theme of your Windows Phone 8 (silverlight) app? Well, just install the PhoneThemeManager package from nuget written by Jeff Wilcox and add a single line of code to your app.

    ThemeManager.ToDarkTheme();

Read more about it at http://www.jeff.wilcox.name/2012/01/phonethememanager/. Oh, and it seems like the reference isn't added sometimes so just add a reference and drill down into the packages folder until you find the correct dll. In this case JeffWilcox.PhoneThemeManager.dll in the windowsphone8 folder.

Windows Phone 8.1 solves this by letting you request a theme by writing something like

    this.RequestedTheme = ApplicationTheme.Light;

in the constructor (or any other place) of your app.

Check out this article on Stack Overflow you more info!

1 comment:

  1. The introduced theme for educational blogs and website provides the presence of a common facet in any two adjacent hypercubes from any m-th partition.
    Proving Note that for any z1, 0 z1 2N-1, the hypercubes D (z1) and D (z1 + 1) have a common face that lies in a plane orthogonal to the j (z1) coordinate axis, where j ( z1) of (5), since such property has the properties of these hypercubes when compared (20).

    ReplyDelete