SyntaxFix
Write A Post
Hire A Developer
Questions
To get the Color from Hex.
using System.Windows.Media; Color color = (Color)ColorConverter.ConvertFromString("#FFDFD991");
and then set the foreground
textBlock.Foreground = new System.Windows.Media.SolidColorBrush(color);