回答済み Multitouch in ListBox

  • 2012年5月1日 18:12
     
     

    What is the easiest way to implement simple scrolling of a ListBox with one finger on a multi-touch device? I mean touching a listbox item and scrolling it a few rows up or down.

    Thanks,

    Leszek


    Website: www.wisenheimerbrainstorm.com

すべての返信

  • 2012年5月1日 18:23
     
     

    Following link may help you

    http://sachabarbs.wordpress.com/2009/12/24/friction-scrolling-now-an-wpf-attached-behaviour-too/


    Gaurav Khanna | Microsoft VB.NET MVP

  • 2012年5月1日 19:50
     
     

    Thanks Khanna. I've found some info on multitouch in one WPF book (Pro WPF in C# 2010 by Matthew MacDonald):

    "Built-in element support: some elements already react to multitouch events, with no code required.  For example, scrollable controls such as the ListBox, ListView, DataGrid, TextBox, and ScrollViewer support touch panning."

    Is it really that simple - no code required? (I don't have a multitouch device handy to test it).

    Thanks,

    Leszek


    Website: www.wisenheimerbrainstorm.com

  • 2012年5月2日 4:58
     
     回答済み

    Yes most of the WPF control support multitouch events. You can use Multitouch simulator available on codeplex to test multitouch application without having device.

    http://multitouchvista.codeplex.com/


    Gaurav Khanna | Microsoft VB.NET MVP

  • 2012年5月2日 13:26
     
     

    I'm aware of this emulator. The problem is that I still use WinXP as a development environment. AFAIK, the MultiTouchVista won't work on WinXP. Oh well, it seems I will need to get a real device to see how multitouch works with WPF ListBox.

    Thanks,

    Leszek


    Website: www.wisenheimerbrainstorm.com

  • 2012年5月3日 7:53
    モデレータ
     
     

    Hi ata6502,

    Seems you have got what you need, so I will close your thread as "Answered", if you need further help, please let me know.

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.