Wpf listview itemssource not updating


11-Nov-2020 12:04

It's called Observable Collection, and you use it much like a regular List - that's all it takes!

This will make the Add and Delete button work, but it won't do anything for the "Change name" button, because the change will happen on the bound data object itself and not the source list - the second step will handle that scenario though.

Hi Zlatko, This forum is for UI for Xamarin, which is why I answered in the context of Xamarin Rad List View.

But this is not working, it gives me a blank page at startup, there is no search Bar and neither the list View element.

I think that I can't simply assign a new item Source is this correct?

The problem is that none of the buttons seems to work. The first step is to get the UI to respond to changes in the list source (Items Source), like when we add or delete a user.

What we need is a list that notifies any destinations of changes to its content, and fortunately, WPF provides a type of list that will do just that.

Visible if the Items Source is non-empty, or Visibility. Additionally, we have a Text Box with a reverse IValue Converter In other words, if our Observable Collection is empty, we display the Text Box to notify the user there’s nothing there, otherwise we show the Items Control.