Hello!
I have problem with binding content property of Label to specific item in list.
I know that I can do something like this
Public Property ListExample As List(Of String)
Get
Return _listExample
End Get
Set(value As List(Of String))
_listExample
End Set
End Property
<Label Content="{Binding Path=ListExample[2]}"/>
But what should I do to binding to the specific element from another property. For example:
Public Property ListExample As List(Of String)
Get
Return _listExample
End Get
Set(value As List(Of String))
_listExample
End Set
End Property
Public Property SpecificItem As Integer
Get
Return _specificItem
End Get
Set(value As Integer)
_specificItem = value
End Set
End Property
<Label Content="{Binding Path=ListExample[SpecificItem]}"/>
This code doesn't work correctly.
Can anybody help me?
Thanks in advance