尽量不使用第三方库,我手动(通过Inkscape )将SVG图像转换为XAML。 我现在的问题是XAML文件不能正确显示。如果我在VisualStudio Designer中查看这些XAML文件,可以看到其中有一些使用base64字符串作为“源”的图像。设计器在"Source“上显示警告"File type not supported in Blend”。 例如。文件直接在图形设计软件( Inkscape - SaveAs XAML )中转换。VisualStudio
public class DesignTimeData public string ImageSource { get { return "/WpfApplication1;component<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"