【问题标题】:How to assign an embedded image resource to an image control in XAML如何将嵌入的图像资源分配给 XAML 中的图像控件 【发布时间】:2011-10-30 05:33:44 【问题描述】: 我是 WPF 新手。如何使用 XAML 将嵌入式资源图像用于 WPF 中的图像控件? 【问题讨论】: WPF image resources 的可能重复项 标签: wpf xaml 【解决方案1】: 将图像添加到您的项目,然后将构建操作设置为资源 将图像添加到您的 xaml,例如<Image Source="YourImage.jpg" /> 【讨论】: