Image shows up in Visual Studio designer but not during run-time

后端 未结 19 2040
独厮守ぢ
独厮守ぢ 2020-12-17 08:09

I\'m currently working w/ VS studio 2010, .NET 4.0. Here is my scenario:

I currently have a class library project called \"Images\" that contains a sub folder calle

19条回答
  •  心在旅途
    2020-12-17 08:14

    The following worked for me:

    • Build Action = Resource

    • Copy to Output Directory = Do not copy

    xaml:

    
    

    Where “myPic.png” is the image inside “Resources” folder

提交回复
热议问题