Indexer binding not updated
Hello,
I have a binding on a List using an indexer.
Something like this:
Property
Binding
Now I want to update the element. In my case setting the first element to null.
In Unity this does not update the binding. I WPF this does work. Is this a Bug or is it unsupported, did not find anything in the docs?
I have a binding on a List using an indexer.
Something like this:
Property
Code: Select all
public List<Test> MyList
{
get => this.myList;
set => this.SetField(ref this.myList, value);
}
Code: Select all
<TextBlock Text="{Binding MyList[0].Text, ElementName=Root}"></TextBlock>
Code: Select all
this.MyList[0] = null;
this.OnPropertyChanged(nameof(this.MyList));
Re: Indexer binding not updated
Nevermind was a mistake by me. It works.
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests