Wednesday, August 01, 2007
WPF - Point an Image to an Embedded Resource
This post has been moved to here. Thank you.
Subscribe to:
Post Comments (Atom)
Bring the Light
|
Linked From |
Mike Harsh 1, 2, 3 |
Lester Lobo 1 |
Bryan Phillips |
Resources |
WPF Community Site |
WPF/E Dev Center |
3 comments:
Thanks for the article, I was wondering why my Silverlight application wasn't showing images after linking it into an ASP.NET application. In the xaml files I reference the images using relative paths, but after reading your article I now understand that the Source properties aren't used to load the embedded images; the are simply used as relative paths, so I need to pcopy the images to the ASP.NET application as well.
Maybe there is an easier way to use embedded resources inside XAML? Maybe something like:
<ImageBrush ImageSource="resource://namespace.resourcename.png"/>
You little beauty! I've been fiddling trying to do this in WPF via C# all week!
Thanks a lot
Thanks a lot Chad!
Post a Comment