Tag Archives: WPF

Silverlight/WPF RGB color in c#

Sometimes you have a color in XAML and want to use it in c#. In other words you want to translate something like: <Border Background=“#AA0FCC1B”>; to: Border.Background = …something… So you start looking for an IValueConverter that create a color from a RGB string, or translate the hex values to decimal, etc… STOP it! All [...]