禁用ListView中的多选CheckBox功能?

Sha*_*mim 1 .net c# wpf listview winforms

我想禁用ListView中复选框的多选功能.我怎么做?

ano*_*joe 5

将选择模式(SelectionMode)设置为SelectionMode.Single.

listView1.SelectionMode = System.Windows.Controls.SelectionMode.Single;
Run Code Online (Sandbox Code Playgroud)

干杯.