BrushConverter converter = new BrushConverter(); Brush newFill = (Brush)converter.ConvertFromString("#000000"); e1.Fill = newFill;