开发者

One selection only in listview

开发者 https://www.devze.com 2023-03-09 22:31 出处:网络
I\'m having problem to find solution to make a single selection row in the listview in my WPF applic开发者_Go百科ation.

I'm having problem to find solution to make a single selection row in the listview in my WPF applic开发者_Go百科ation.

How should I do it?


SelectionMode="Single"?


The answer above is for ListBox, not ListView .

For a ListView you set the MultiSelect property to False (can be done via the Designer).


ListView in WPF has SelectionMode="Single" .

0

精彩评论

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