I have a propery that is a hashset, and I would like to notify to the view when a property of the first element is changed.
I implemented the iterface for notify when the property changed, but I don't know how to notifiy to the view. I have this code in my view:
<DataGridTextColumn Header="Field01" Binding="{Binding Path=MyHashSet[0], Converter={StaticResource myValeuConverter}}"/>
The problem is that the HashShet does not have the way to access to elements, so I can't use myHashSet[0] or myHashSet.ElementAt(0) or something else.
If in my view model I use Linq, the hashset has the method First(), but in the view I don't know if it is possible to include Linq to have access to this methods.
So, is it possible to use in the converter the first element of my hashset?
Thanks.