windows phone 7 - how to get scroll up/down or left/right event for scrollviewer/listbox in wp7 -
windows phone 7 - how to get scroll up/down or left/right event for scrollviewer/listbox in wp7 -
how scroll up/down or left/right event scrollviewer/listbox? have next xaml. notification when user scroll.
<scrollviewer horizontalscrollbarvisibility="auto" margin="0,6,-196,0" height="auto" name="imagescroll"> <listbox x:name="mylistbox" margin="12,0,0,0"> <listbox.itemspanel> <itemspaneltemplate> <stackpanel orientation ="horizontal" > <stackpanel.rendertransform> <translatetransform x="0" /> </stackpanel.rendertransform> </stackpanel> </itemspaneltemplate> </listbox.itemspanel> <listbox.itemtemplate> <datatemplate> <stackpanel orientation="horizontal"> <textblock foreground="greenyellow" fontsize="60" text="{binding name}"/> <hyperlinkbutton content="evten" navigateuri="{binding price}" foreground="aliceblue" fontsize="40" textoptions.texthintingmode="animated"/> <textblock foreground="red" padding="30" fontsize="60" text="{binding price}"/> <textblock foreground="greenyellow" fontsize="60" text="{binding description}"/> <textblock foreground="red" padding="30" fontsize="60" text="{binding calories}"/> </stackpanel> </datatemplate> </listbox.itemtemplate> </listbox> </scrollviewer>
peter torr has excelent blog post shows how create lazylistbox. code shows how observe if listbox beingness scrolled detecting changes in visualstategroup of listboxes underlying scrollviewer.
windows-phone-7 listbox scroll scrollview
Comments
Post a Comment