internal string ConvertToString() { ConverterHelper helper = new ConverterHelper(); if (Stroke is SolidColorBrush) { helper.Add("Stroke", Stroke); } if (Fill is SolidColorBrush) { helper.Add("Fill", Fill); } if (StrokeThickness != 1.0) { helper.Add("StrokeThickness", (double)StrokeThickness); } return(helper.ConvertToString()); }