<分区>
Possible Duplicate:
WPF image resources
我的 VS C# 项目中有一些图像被声明为嵌入式资源。我使用以下方法在 .cs 文件中访问它们:
Stream logoStream = GetType().Assembly.GetManifestResourceStream("ProjNS.Image.logo.png");
Bitmap logo = new Bitmap(logoStream);
但是我如何才能在 .xaml 文件中访问我的 Logo ?