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?
Call the resource as follows:
<Image Source="Resources/ProjNS.Image.logo.png" height="100" width="100"/>