资源中缺少文件夹

folder missing in resources

我有以下显示图像的代码:

Image im = new Image();
im.Source = new BitmapImage(new Uri("Icons.login.jpg", UriKind.RelativeOrAbsolute));
im.Height = 200;
im.Width = 200;
icons.Add(new IconImagesForDummies() { Name = str, Image = im });

Image class 属于 System.Windows.Controls.Image。我添加了一个文件夹来与 Resources 文件夹(名为 Icons)分开存储图像。但是我已经把所有图片的build action 属性都设置成了Embed Resource,而且都设置成了Copy Always。我不知道为什么我看不到图像。我正在使用 WPF。调试的时候发现图片路径没问题,也成立了,但不知道是什么原因,图片没有显示出来。我读过 here 但没用。
Uri 有问题吗?

编辑:也许就是这么简单

im.Source = new BitmapImage(new Uri(@"Icons\login.jpg", UriKind.Relative));

编辑:将构建操作更改为内容有效。