Wednesday, August 01, 2007

WPF - Point an Image to an Embedded Resource

This post has been moved to here. Thank you.

3 comments:

  1. Anonymous11:00 AM

    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"/>

    ReplyDelete
  2. Anonymous2:25 AM

    You little beauty! I've been fiddling trying to do this in WPF via C# all week!

    Thanks a lot

    ReplyDelete
  3. Thanks a lot Chad!

    ReplyDelete