Convert Hex value to a color
This is a very useful method as it will be easy to implement color schemes from the code behind.
Download source code
The implementation will as simple as this
System.Windows.Controls.TextBox textBox = new System.Windows.Controls.TextBox();
textBox.Foreground = new SolidColorBrush(ApplicationHelper.HexToColorConverter("#C4DEFB"));
Comments
Post a Comment