DNB,
Just use a SolidColorBrush, like so:
// Create the color first.
System.Windows.Media.Color color = System.Windows.Media.Color.FromRgb((byte)
0xE7, (byte) 0xEB, (byte) 0xF7);
// Create the brush.
System.Windows.Media.SolidColorBrush brush = new
System.Windows.Media.SolidColorBrush(color);
// Set the background.
b.Background = brush;
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"DNB" <ii@ii.comwrote in message
news:O8**************@TK2MSFTNGP02.phx.gbl...
>I would like to add this color #E7EBF7 to my WPF data grid
I know that I can add light blue color using following:
Grid b = new Grid();
b.Background = System.Windows.Media.Brushes.LightBlue;
but how to add specific color (i.e. #E7EBF7 )
Thanks
DNB