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

后端 未结 19 1996
独厮守ぢ
独厮守ぢ 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:26

    The easiest way is to just add the image to your project. Add a Resource folder to your project by right clicking on solution explorer -> Add -> Folder (Name it Resource) -> Right click the newly created Resource folder -> Click Add existing Item -> Find your image (select All Files)

    Add an image item to your xaml form selected. Under properties -> Common -> Source you should be able to just drop down and select your image

    Selecting from dropdown

提交回复
热议问题