'#10eeee'
Here is what I am trying to do:
groupRectangle.Fill = Color.FromHex?
You are looking for ColorConverter.ConvertFromString .
Color color = (Color)ColorConverter.ConvertFromString("#10eeee"); SolidColorBrush myBrush = new SolidColorBrush(color);
You will need using System.Windows.Media; at the top of your program.
using System.Windows.Media;
Next line Color formats should be supported .
Edit: You can also use BrushConverter .
Source: https://habr.com/ru/post/1314694/More articles:PHP: code for checking image quality / pixelation (not compression ratio, but real quality)? - phpBypassing pre-order BST and writing tree contents to temporary array - c ++How can I improve this code? - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1314692/what-do-i-do-if-constructor-fails-to-allocate-memory-in-c&usg=ALkJrhjrAcqt03bcpuYJBTJGOF9MPfCxjgCan params be used to pass variables through ref using a function using yield - yieldWhat is the best free / paid C ++ Video Training resource? - c ++How to avoid redundant data fields in a result set when using JOIN? - sqlHow to send mail from a stored procedure? - sqlC # Samples for Windows Parental Controls API - c #try / except doesn't seem to catch exceptions - Delphi Service Application - exception-handlingAll Articles