While using XAML in WPF, we can easily bind to the first item in a list as follows:
<TextBlock Text="{Binding Model.Persons[0].FullName}"/>
But what if I wanted to bind to the last item? Let's say I don't know how many items the list may have or else I could easily have used that index.
<TextBlock Text="{Binding Model.Persons.Last.FullName}"/>
or
Neither above does not work unfortunately. Does anyone have any idea how to bind to the last item?
