How to Programatically Get the Current Theme Color in Windows Phone 8 ?

Are you Looking for the information on how to get the accent color or Theme color of Windows Phone 8 using C# ? Below is a sample code snippet that demonstrates how to achieve it.

How to Programatically Get the Current Theme Color in Windows Phone 8 ?

var color = (System.Windows.Media.Color)Application.Current.Resources["PhoneAccentColor"];
MessageBox.Show(color.ToString());
How to Programatically Get the Current Theme Color in Windows Phone 8 ?