开发者

How To customize the selection of multiple items in a surfaceListBox

I have a surfaceListBox that contains many items. when I put the SelectionMode to multiple , every thing is fine and I click on an item to add it to the selectionItems, But I want to get the same behaviour but not with clicking on开发者_Python百科 the items but when the touch is moving over the item , Here is some details of the manipulation I want to add:

if the touch is moving over a surfacelistboxitem , this item is added to the selectedItems . Thanks for your help


SurfaceListBox doesn't support this because it needs to treat moving fingers as scrolling.

If you don't need the ability to scroll, you can ditch SurfaceListBox and instead use a StackPanel filled with SurfaceToggleButton elements. On those toggle buttons, set ClickMode=Hover so that they will toggle just by moving your finger over them.

-Robert (former PM for the Surface controls)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜