How do I use INotifyPropertyChanged to update an array binding?

前端 未结 4 1439
再見小時候
再見小時候 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条回答
  •  日久生厌
    2021-02-04 08:23

    Avoiding strings in your code, you can use the constant Binding.IndexerName, which is actually "Item[]"

    new PropertyChangedEventArgs(Binding.IndexerName)
    

提交回复
热议问题