8

Possible Duplicate:
WPF image resources

I have some images in my VS C# project that are declared as embedded resources. I'm accessing them in the .cs file using:

Stream logoStream = GetType().Assembly.GetManifestResourceStream("ProjNS.Image.logo.png");
Bitmap logo = new Bitmap(logoStream);

But how can I access my logo in the .xaml file?

Community
  • 1
  • 1
Norbert
  • 4,239
  • 7
  • 37
  • 59
  • "But how can I access my logo in the .xaml._**cs**_ file?" Are you actually talking about the cs file ? or did you mean the xaml file ? – Steve B Feb 22 '11 at 10:35

1 Answers1

0

Call the Resource like this;

<Image Source="Resources/ProjNS.Image.logo.png" height="100" width="100"/>
Robbie Tapping
  • 2,516
  • 1
  • 17
  • 18