开发者

Hmm... "add as link"ed images don't show up at runtime

开发者 https://www.devze.com 2022-12-22 18:46 出处:网络
Sorry guys, I开发者_StackOverflow posted this earlier today where my \"add as link\"ed images were giving me a design-time error.I got assistance with that and now my code compiles, but now the images

Sorry guys, I开发者_StackOverflow posted this earlier today where my "add as link"ed images were giving me a design-time error. I got assistance with that and now my code compiles, but now the images don't even appear when my application runs.

Just for giggles, I changed the Build Action for the images, and nothing made a difference.

Is there anything I can do to debug this and figure out if there's a runtime error preventing me from displaying images?

This is the first time I've experienced this, because until today, I've always had my images in my project folder.


I found my answer, and ironically enough, the person that answered my previous question suggested something there that would have helped me out here.

Synopsis: don't use linked images in your WPF app because they are not treated the same as images in your project folder. This is a confirmed bug and will be fixed in VS2010.

0

精彩评论

暂无评论...
验证码 换一张
取 消