【问题标题】:How to assign an embedded image resource to an image control in XAML如何将嵌入的图像资源分配给 XAML 中的图像控件
【发布时间】:2011-10-30 05:33:44
【问题描述】:

我是 WPF 新手。如何使用 XAML 将嵌入式资源图像用于 WPF 中的图像控件?

【问题讨论】:

标签: wpf xaml


【解决方案1】:
  1. 将图像添加到您的项目,然后将构建操作设置为资源
  2. 将图像添加到您的 xaml,例如<Image Source="YourImage.jpg" />

【讨论】:

    猜你喜欢
    • 2011-05-26
    • 2021-10-12
    • 2014-02-05
    • 2013-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-09
    相关资源
    最近更新 更多