//返回Brush类型AccentColor的值 SolidColorBrush strColor = (SolidColorBrush)Application.Current.Resources["PhoneAccentBrush"]; //可以字符串的的形式打印出数据 System.Diagnostics.Debug.WriteLine(strColor.Color.ToString()); //打印出strColor的类型 System.Diagnostics.Debug.WriteLine(strColor.GetType()); //返回Color类型值 Color accentColor = (Color)Application.Current.Resources["PhoneAccentColor"]; //打印输出Background值 var bgColor = Application.Current.Resources["PhoneBackgroundColor"].ToString()