public void makeColor(Make theme) { var addTheme = theme.MakeTheme(); var converter = new System.Windows.Media.BrushConverter(); var backgrounColour = (Brush)converter.ConvertFromString(addTheme.BackgrounColour); var fontColour = (Brush)converter.ConvertFromString(addTheme.FontColour); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! smenq cwetowete .... raboti :) this.Background = backgrounColour; this.Foreground = fontColour; TabcontrolGeneral.Foreground = fontColour; }