public static SolidColorBrush GetBrush(SvgVisualElement svg) { var color = svg.Fill.GetBrush(svg, SvgRenderer.FromNull(), svg.Fill.Opacity); var c = ((System.Drawing.SolidBrush)color).Color; return(new SolidColorBrush(Color.FromArgb(c.A, c.R, c.G, c.B))); }