Creating multiple secondary tiles at once RRS feed

  • Question

  • The user can select more than one item and then choose "Pin" from the appbar.

    However when I call requestCreateAsync for the second item an exception is thrown that another flyout is already present.

    How would I chain the creation of multiple tiles?

    I tried collecting the tile.requestCreateAsync() promises but this does not work, cause the flyout it already created when the method is called not when the promise is executed.

    Any ideas?

    Thursday, February 9, 2012 5:40 AM


All replies

  • Are you saying this pattern does not work for you?

    oSecondaryTile.requestCreateAsync().then( function (isPinned) { anotherSecondaryTile.requestCreateAsync().then( function (isPinned) { } );} );


    Jeff Sanders (MSFT)

    Thursday, February 9, 2012 7:01 PM
  • This should work, Jeff. I just could not get my mind wrapped around those promises. :) Thanks for your help.

    We have already defined a different, even better UX for that pinning use-case though.

    Thursday, February 9, 2012 8:03 PM