Pack URI and path not resolving image in WPF

前端 未结 3 660
梦如初夏
梦如初夏 2021-01-13 13:08

I have the following directory structure

Project
\\Images
 +view.png
control.xaml

and in the control I have a button defined by the followi

3条回答
  •  走了就别回头了
    2021-01-13 13:25

    I actually got this to work, but had to set my source to "/ProjectName;component/images/view.png" Because I have the ProjectName as a referenced assembly this is then the same as the Path: portion at the msdn page that I referenced in the question.

提交回复
热议问题