private void ProcessColor(object colorObj, StoppedDouble opacityObj, bool isCasing) { if (isCasing && Outline == null) { Outline = new Stroke(); } string color = Helper.ProcessColor(colorObj, opacityObj); if (isCasing) { Outline.Color = color; } else { Color = color; } }
private void ProcessWidth(StoppedDouble lineWidth, bool isCasing) { if (isCasing && Outline == null) { Outline = new Stroke(); } string width = Helper.ProcessWidth(lineWidth, isCasing); if (isCasing) { if (Outline.Width == null) { Outline.Width = width; } } else if (Width == null) { Width = width; } }