Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为 Guitar 的 WPF 项目,guitar.png 图像确实显示在视觉工作室。但是每当我运行项目时,图像在运行时都不会显示。这是要了我的命。
<Image Canvas.Left="640" Canvas.Top="297" Name="guitar" Source="/Guitar;component/guitar.png" Stretch="None"/>
以前有没有人有同样的问题?
将图像源设置为“guitar.png”后,它可以工作。