Bind to Count of items in the DataContext

Posted by Organ Grinding Monkey on Stack Overflow See other posts from Stack Overflow or by Organ Grinding Monkey
Published on 2010-05-26T20:33:58Z Indexed on 2010/05/26 22:01 UTC
Read the original article Hit count: 179

Filed under:
|

I want to bind to the Count/amount of items within my DataContext.

I have an object, lets say person which has a List<address> as a property. I would like to display the amount of addresses for that person ie: 5 or 6 or whatever the case may be.

I've tried {Binding Path=address#.Count} and a few others but that doesnt seem to work.

Any help would be appreciated, thanks.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about binding