locked
A problem met in building a SDK sample

Answers

  • Try changing this line

            // get the image attributes for this template and fill them in
            var tileImageAttributes = tileXml.getElementsByTagName("image");
            tileImageAttributes[0].setAttribute("src", "ms-resource:images/redWide.png");
            tileImageAttributes[0].setAttribute("alt", "red graphic");
    
    to this:
    
            // get the image attributes for this template and fill them in
            var tileImageAttributes = tileXml.getElementsByTagName("image");
            tileImageAttributes[0].setAttribute("src", "ms-resource:images/redWide.scale-80.png");
            tileImageAttributes[0].setAttribute("alt", "red graphic");
    

    in default.js


    Jeff Sanders (MSFT)
    Monday, November 21, 2011 4:04 PM
    Moderator
  • Hi Colin,

    That should do it!  Note that it will restore it to its original location so if you have a lot of icons you may have missed it.  Also, try shutting down your machine and then restarting it.  Finally, you can uninstall it (again by right clicking on it) and see if that does it for you!

    -Jeff


    Jeff Sanders (MSFT)
    Tuesday, November 22, 2011 12:56 PM
    Moderator

All replies

  • Try changing this line

            // get the image attributes for this template and fill them in
            var tileImageAttributes = tileXml.getElementsByTagName("image");
            tileImageAttributes[0].setAttribute("src", "ms-resource:images/redWide.png");
            tileImageAttributes[0].setAttribute("alt", "red graphic");
    
    to this:
    
            // get the image attributes for this template and fill them in
            var tileImageAttributes = tileXml.getElementsByTagName("image");
            tileImageAttributes[0].setAttribute("src", "ms-resource:images/redWide.scale-80.png");
            tileImageAttributes[0].setAttribute("alt", "red graphic");
    

    in default.js


    Jeff Sanders (MSFT)
    Monday, November 21, 2011 4:04 PM
    Moderator
  • Thank you  for your reply, but I met another problem @_@

    If I unpin the tile in the start menu, I can't pin it any more.
    How can I pin an application to the start menu? Right mouse click and select to pin to start menu donesn't work.

    Tuesday, November 22, 2011 9:46 AM
  • Hi Colin,

    That should do it!  Note that it will restore it to its original location so if you have a lot of icons you may have missed it.  Also, try shutting down your machine and then restarting it.  Finally, you can uninstall it (again by right clicking on it) and see if that does it for you!

    -Jeff


    Jeff Sanders (MSFT)
    Tuesday, November 22, 2011 12:56 PM
    Moderator