开发者

WPF Listview Selection ClickMode

I wa开发者_如何学编程s wondering if an item in ListView could be selected when Mouse Release, not Mouse Down. (Like ClickMode property of Buttons) Is there any way to achieve that?

Thanks!


Register to PreviewMouseDown on the list and set e.Handled=true. Register to PreviewMouseUp and handle the selection manually. This should do what you're looking for.

But beware that such a list-behaviour confuses the user.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜