locked
filpview

    Question

  • I set up a contains a number of pages of the program:default.html->homepage.html->page2.html.  And  add filpview control for page2.html. as follow:

    page2.html:

    <div id="Template_FlipView" data-win-control="WinJS.Binding.Template" >    
           <img src="#" data-win-bind="src: picture" />
         </div>

     <div class="ChapterPage_Div_ChapterItemSectionBackgroundImage" data-win-control="WinJS.UI.FlipView"
                 data-win-options="{itemDataSource:DataExample.itemList.dataSource,itemTemplate:Template_FlipView }">
                </div>

    but  when I run the app  :

    If I added the following code about Itemtemplate  to the homepage page:

    homepage.html:

    <div id="Template_FlipView" data-win-control="WinJS.Binding.Template" >    
           <img src="#" data-win-bind="src: picture" />
         </div>

    run the app again

    so I don't know why need to add  the code to the previous page ?

    Friday, May 25, 2012 5:11 AM

Answers

  • You should not need to add it to homepage.html

    Can you post your complete project on SkyDrive or contact me here: http://blogs.msdn.com/jpsanders/contact.aspx

    -Jeff


    Jeff Sanders (MSFT)

    • Marked as answer by Dino He Friday, June 1, 2012 7:33 AM
    Friday, May 25, 2012 12:10 PM
    Moderator