开发者

How to scroll ListBoxes naturally on the touch-screens in WPF application?

I am developing WPF application which will be execu开发者_如何学Pythonting on the 21-inch touch-screen.

Along with ListBoxes in my application I have vertical scroll-bars for each of them. What I want is to get rid of those scroll-bars and just allow user to scroll naturally by touching lists itself. How can I achieve that? Is there out-of-the-box support for that in Windows 7 and .NET 4.0?


I know this is an old question, but it came up for me first in Google. So just in case someone else comes here, the answer to this is in this SO question. Simply set the PanningMode, PanningDeceleration, and PanningRatio for the ScrollViewer.

It worked for me on a ComboBox as well.

<ComboBox ... ScrollViewer.PanningMode="VerticalOnly" />


Have a look at this similar question

Although WPF supports touch events out of the box WPF is very limited for this kind of scenario.

I am hoping for 3rd parties (or even Microsoft) to add the Windows 8/Metro touch experience to WPF

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜