I am using SharpVectors to display SVG images in my WPF project.
One way to do this is to specify the SvgImage
markup extension for the image source, such as:
<Image Source="{svgc:SvgImage Source=Images/test.svg}"/>
This works great at runtime.
However at design-time the image shows up blank. Is there any way to specify a design-time-only image? Ideally it would be the same image used at runtime, but even an alternative placeholder image would be better than nothing. That way at least the relative positions of objects would be clear, etc.
Note - although there are other ways of displaying an SVG image (namely, the SvgViewBox
object) there are cases where you can only do it by specifying an image source. Namely, the LargeImageSource
or SmallImageSource
attributes of WPF Ribbon controls.