有没有办法从后面的 WPF 代码中的System.Windows.SystemColors.WindowTextBrushKey获取颜色名称,如红色、黑色等?
string color = "Black";
if (System.Windows.SystemParameters.HighContrast)
{
color = System.Windows.SystemColors.WindowTextBrushKey; // I want to get color from this value
}