How do I use INotifyPropertyChanged to update an array binding?

前端 未结 4 1491
再見小時候
再見小時候 2021-02-04 08:04

Let\'s say I have a class:

class Foo
{
  public string Bar
  {
    get { ... }
  }

  public string this[int index]
  {
    get { ... }
  }
}

I

4条回答
  •  萌比男神i
    2021-02-04 08:37

    Thanks to Cameron's suggestion, I've found the correct syntax, which is:

    Item[]
    

    Which updates everything (all index values) bound to that indexed property.

提交回复
热议问题