Just a friendly advice, learn MVVM
before writing a single line of code in wpf. To solve your problem here, you need not to touch Items
property direcly on the ListView
. Just set the ItemsSource
as below and it will work.
this.scanner.Scan();
ControllerInfoCollection controllers = scanner.Controllers;
listView1.ItemsSource = controllers