1. 程式人生 > >Pack Url路徑正確,Cannot locate resource image

Pack Url路徑正確,Cannot locate resource image

在xaml設計時,傳入的路徑正確,執行時卻找不到資源

解決方案:將“MyPic.Png”屬性頁,“生成操作”改為“Resource”

In the solution explore, set the image "Build Action" property to "Resource" ,then clean the solution and rebuild it.