set background from csharp wpf

Code Example - set background from csharp wpf

                
                        textBox1.Background = (SolidColorBrush)new BrushConverter().ConvertFromString("#082049");