Change image


  • I downloaded the sample of CanvaPaint and tried to change some image, for instance url(/assets/icons/appbar/home.png) to another one that I just added. But I found it doesn't work. But if I change it to brush.png which is build in, it works. Also, I tried renaming home.png to home1.png and url(/assets/icons/appbar/home1.png). It still doesn't work. why is that? Is it somewhere I need t register my image?

    Monday, December 12, 2011 6:48 AM


All replies

  • Hi GreatWall!

    This is very interesting... I was able to repro this.  Let me do some research and I will get back to you!


    Jeff Sanders (MSFT)
    Monday, December 12, 2011 4:42 PM
  • Silly me!

    You have to add it as an asset in your application as all.  For example, I added 'oldhome.png' for my replacement of the 'home.png'.  If you do not do this, that new resource does not get deployed as part of the package!  Make sense?





    Jeff Sanders (MSFT)
    Monday, December 12, 2011 4:48 PM
  • yes, it works. Thanks.
    shang xinli
    Monday, December 19, 2011 5:51 AM