WPF代码引用Resouces中的图片

Stream icon_stream = System.Windows.Application.GetResourceStream(new Uri("pack://application:,,,/你得项目的名称;component/Resources/Images/1315806484_data-center-px-png.ico")).Stream;



你可能感兴趣的:(WPF,resource)