Hi!
I have a Contact entity that exposes a navigation proeprty for child Phone entities.
Public Class Contact : Inherits EntityObject
Public Property Phones() As EntityCollection(Of Phone)
EndClass
I want to Xamly retrieve the first phone of the bound contact. I tried the following but it doesn't work. Note: I also tried Phones[0] (I use VB).
<DataTemplate DataType="{x:Type data:Contact}">
<TextBlock Text="{Binding Phones(0)}"/>
</DataTemplate>
Any suggestions (either in VB or C# will be welcommed)?