Saturday, January 4, 2014

How to detect the Windows Phone theme is Dark or Light

 

private const string key = "PhoneDarkThemeVisibility"

private bool IsBackgroundDark()
{
return ((Visibility)Application.Current.Resources[key] == Visibility.Visible);
}

9 comments:

malik aayan said...

Hi this one is great and is really a good post.

Christ Bonn said...

Hi there,
Great information you post that How to detect the Windows Phone theme is Dark or Light ? But i got a great website. At phone renew, sell your old smartphones and get affordable cash.

Nickolas Jemison said...

Hi there I'm new to windows mobile platform, so could anybody explain what this string is responsible for? View here: {
return ((Visibility)Application.Current.Resources[key] == Visibility.Visible);
}

Sarah Taylor said...

Nice to read this post about detecting Windows Phone theme is Dark or Light. It is very easy to perform. I am interested to know about windows app development

James Andrewson said...

App Maisters a Premium Windows App Development Company Masters of App Development, Android/IOS/Windows Mobiles with the team of professional and experience developers.

sam samson said...
This comment has been removed by a blog administrator.
sam samson said...

Well Informative and more Best Smartphone in India Price under 20000

Tarık Kadir Gençal said...
This comment has been removed by a blog administrator.
Sunil Tiple said...

Super duper