예제 #1
0
파일: ShapeStyle.cs 프로젝트: Daoting/dt
        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());
        }