At design time pack uri is valid, but not at runtime?

后端 未结 4 1414
暖寄归人
暖寄归人 2021-02-13 19:00

I\'m setting a Button\'s content to an Image. It looks something like this:

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 19:59

    One other solution to getting this right:

    Once your image Build Action is set to 'Resource' and you have rebuilt, navigate to the properties of your object. The properties window will provide a ... file resource browser, whereupon selecting your image the Source="..." attribute of your will be correctly filled in.

提交回复
热议问题