c# - WPF scrolling like in touchable applications -


i'm trying find solution problem: want make stackpanel, scrolling behavior one, can find in windows store app's stackpanels. means: if left click mouse somewhere within stackpanel, can scroll , down moving mouse , down. don't have use scrollbar.

now - in wpf - can't find similar solution that. tried examples in www, unfortunately none of tricks worked. got until now:

<scrollviewer panningmode="both" verticalscrollbarvisibility="visible" >         <stackpanel margin="10">             <label content="hello world" />             <label content="hello world " />              ...         </stackpanel> </scrollviewer> 

but that's it. , (surprise) - not work :) in other wpf application have seen, possible.. somehow.

could please me? thx far,

codecannibal

this surprisingly easy do, there's an example of such behavior on page. according a duplicate of question solution has memory leak i'm sure tracked down.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -