How to get Selected items in WPF CheckBox ListBox

前端 未结 3 1525
独厮守ぢ
独厮守ぢ 2020-12-21 23:13

Am Using the checkbox in listbox items, how to get the selected checkboxes from the list



        
3条回答
  •  自闭症患者
    2020-12-22 00:06

    Have your template like this

    
        
     ........
       
     ..........
        
    

    then the above binding will sync two way with your models isSelected and list view selection, then in code use SelectedItems.

    For Each s As myPoco In myListView1.SelectedItems
       ' do something here with
    Next
    

提交回复
热议问题