How to get image from a folder path in wpf

后端 未结 3 417
天命终不由人
天命终不由人 2021-01-21 00:17

I\'m trying to understand how to make a get a file from my project I\'m using visual studio 2010, and I have a folder in my wpf project that is called: Images

How can I

3条回答
  •  别那么骄傲
    2021-01-21 01:08

    what about

    var uriSource = new Uri(@"/FinalSadna;component/imagename.png", UriKind.Relative);
    

提交回复
热议问题