WPF Listview SelectionChanged event

前端 未结 5 1542
滥情空心
滥情空心 2021-02-05 17:04

I have a ListView binding to an ItemsSource and the SelectionChanged event is firing on the load/databound events? I assume that it is bec

5条回答
  •  天涯浪人
    2021-02-05 17:28

    You can try to set the SelectedIndex property to -1 in your binding but this also is not an elegant solution.

    
    
    

    I tried to reproduce your behavior but without success. What is the Type of the ItemsSource collection that you are binding to?

提交回复
热议问题