الإجابة Multitouch in ListBox

  • Tuesday, May 01, 2012 6:12 PM
     
     

    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

All Replies

  • Tuesday, May 01, 2012 6:23 PM
     
     

    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

  • Tuesday, May 01, 2012 7:50 PM
     
     

    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

  • Wednesday, May 02, 2012 4:58 AM
     
     Answered

    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

  • Wednesday, May 02, 2012 1:26 PM
     
     

    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

  • Thursday, May 03, 2012 7:53 AM
    Moderator
     
     

    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.