xaml - Why LongListSelector ItemTemplate Doesn't Show Anything? -
i need pivot page in every pivot page there longlistselector list data...
this code write when create simple pivot page
<phone:pivotitem header="all"> <phone:longlistselector name="allnotes" background="black" margin="0,0,0,0"> <phone:longlistselector.itemtemplate> <datatemplate> <stackpanel background="white" margin="0,17,0,0"> <textblock text="aaaa"> </textblock> </stackpanel> </datatemplate> </phone:longlistselector.itemtemplate> </phone:longlistselector> </phone:pivotitem>
but there isn't in pivot item
i mean defining data template , stackpanel, there nothing shown in pivot item
can me ti figure out whats happening exactly?
here binding code
<phone:pivot title="my notepad" background="darkcyan"> <!-- notes --> <phone:pivotitem header="all"> <phone:longlistselector name="firstlistbox" itemssource="{binding allnotes}" background="black" margin="0,0,0,0"> <phone:longlistselector.itemtemplate> <datatemplate> <stackpanel margin="0,17,0,0"> <textblock text="{binding title}" textwrapping="wrap"/> <textblock text="{binding memory}" textwrapping="wrap"/> </stackpanel> </datatemplate> </phone:longlistselector.itemtemplate> </phone:longlistselector> </phone:pivotitem>
now think it?
Comments
Post a Comment