locked
ListView UI Issues in Windows Store Application

    Question

  • Hi,

    We are having  issue with ListView on the screen while performing Drag and Drop, we were able to do drag and drop with mouse successfully, but we are unable to perform Drag and Drop with Fingers i.e user is unable to hold, drag and drop on destination. Whenever user selects an Item and starts to drag entire list view control moves, which doesn't allows be to drag, other issue is if i move my finger on listview, listview moves up and down.. can any1 tell me how to make ListView fixed and able to drag single item without making listview to move.


    Mahender

    Saturday, July 26, 2014 10:02 PM

Answers

  • Hi,

    Please see XAML ListView and GridView reorder and drag and drop sample (Windows 8.1) http://code.msdn.microsoft.com/windowsapps/XAML-ListView-and-GridView-6bd77f71

    And also the GridViewEx control implements drag and drop for cases which are  not supported by the regular GridView control:

    • For items panels other than WrapGrid, StackPanel, and    VirtualizingStackPanel.
    • When grouping is enabled.

    It also allows adding new groups to the underlying data source if the  user drags some item to the left-most or right-most edges of the  control.

    http://www.codeproject.com/Articles/536519/Extending-GridView-with-Drag-and-Drop-for-Grouping

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Monday, July 28, 2014 5:36 AM