<Image Source="/WpfApp1;component/Assets/Images/yanzhengma.jpeg" Grid.Column="2" Height="40" Width="70" />
然后在Xaml前台添加路径绑定:ImageSource="/WpfApp1;component/Assets/Images/yanzhengma.jpeg"
/ScenarioNS; :这是你的工程文件的名称,或者说是你的图片对应的程序集的名称
component :component是固定前缀
ImageSource="../WpfApp1/Assets/Images/yanzhengma.jpeg"的写法,这样不会写时不会报错,但是在启动调试到这里时就会报异常