xaml - ScrollViewer Issue with StackPanel in Windows Phone 8 -


i put stackpanel scrollviewr, when scrolling last item returns old position.

<scrollviewer margin="0,0,0,20"> <stackpanel>   //textblocks , textboxes ... </stackpanel> </scrollviewer> 

after search found that: itemscontrol, virtualizingstackpanel , scrollviewer height

i changed code to:

<stackpanel>   //textblocks , textboxes ... </stackpanel> <scrollviewer> <virtualizingstackpanel />  </scrollviewer> 

i can't set cancontentscroll="true" can't find it. make exception: system.invalidoperationexception: virtualizingpanel not nested in itemscontrol. virtualizingpanel must nested in itemscontrol , show items.

what must do, enable scrolling without returning old position?

regards,

after search again ... found post solve problem of scrolling return old position when open keyboard.

scrolling page keyboard shown

code after updates:

<scrollviewer height="500" verticalalignment="top"> <stackpanel height="700">   //textblocks , textboxes ... </stackpanel> </scrollviewer> 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -