Let\'s say I have a class:
class Foo
{
public string Bar
{
get { ... }
}
public string this[int index]
{
get { ... }
}
}
I
Don't know for sure if this'll work, but reflector shows that the get and set methods for an indexed property are called get_Item and set_Item. Perhaps you could try Item and see if that works.
Avoiding strings in your code, you can use the constant Binding.IndexerName
, which is actually "Item[]"
new PropertyChangedEventArgs(Binding.IndexerName)
PropertyChanged( this, new PropertyChangedEventArgs( "Item[]" ) )
for all indexes and
PropertyChanged( this, new PropertyChangedEventArgs( "Item[" + index + "]" ) )
for a single item
greetings, jerod
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.