0
Path=[Items[0].Name]

Is it possible?

The reason why I ask because this post How to save the IsExpanded state in group headers of a listview seems to imply that it is possible. However, I have been unable to get it to work or see any documentation that claims this is possible.

Community
  • 1
  • 1
user1604008
  • 995
  • 9
  • 17

1 Answers1

0

That example should work without the square brackets.

{Binding Path=Items[0].Name}

In other situations, you might need to using the Source property of the Binding. For example:

{Binding Path=Name, Source={Binding Path=Items[0]}}
Michael L Perry
  • 7,327
  • 3
  • 35
  • 34
  • please reference the linked article for context; [Items[0].Name] and Items[0].Name are not the same thing. I asked if subexpressions in indexers is allowed. – user1604008 Sep 13 '12 at 20:55