How to reference image resources in XAML?

后端 未结 4 1123
轮回少年
轮回少年 2020-11-28 22:08

I put an Image control on a Window and I would like to display an image that is stored in a project resource file named \"Resources.resx\". The name of the imag

4条回答
  •  旧时难觅i
    2020-11-28 22:29

    1. Add folders to your project and add images to these through "Existing Item".
    2. XAML similar to this:
    3. F6 (Build)

提交回复
热议问题