c# - Image doesn't appear when changing its source in Windows Phone -


when want change image's source, image disappears.

the code i'm using:

tactimg.source=tactimglist[i];  tactimglist = new bitmapimage[32]; tactimglist[0] = new bitmapimage(new uri("ms-appx:///assets/images/1.png", urikind.absolute)); 

what doing wrong? there need add xaml file or i'm making global array wrong?

you don't need use ms-appx in windows phone 8 projects , it's winrt projects.

make sure image's build type content , remove ms-appx part , since image has relative uri , set urikind relative.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -