WPF: access to embedded resource in XAML

Possible duplicate:
WPF Image Resources

I have several images in my VS C # project declared as embedded resources. I access them in a .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 a .xaml file?

+7
source share
1 answer

Call the resource as follows:

 <Image Source="Resources/ProjNS.Image.logo.png" height="100" width="100"/> 
0
source

All Articles