المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : List View Shift Selection behaves indifferently



C# Programming
03-29-2013, 04:00 PM
Hi


I have a WPF list View and It has some contents say.

Row1, Row 2 , Row 3, Row 4, Row 5..

Also I have 2 arrows in application which moves the item in the list view Next and Previous.

When I shift select Row 3 to Row 5 all 3 gets selected
Now I click Next and the selection selects Row 4, as we consider first click as the recent item and Next should move the selection to Row 4..

Until this all works fine.

But now when I do shift selection from Row 4 to Row 5...

Row 3, Row 4, Row 5 are getting selected..actual result should have been only Row 4 and Row 5..

I have tried many different ways ...but could not find a proper solution..Looks like items are not cleared from selection set of ListView..Any help would be really appreciated