BindingContext in xaml

EBatikEBatik NLMember ✭✭✭
edited November 2016 in Xamarin.Forms

Hello ppl! i use this in my xaml BindingContext="{Binding EditClassVm,Source={x:Static local:App.VmLocator}}" . I would like to display the text of 3 labels from 3 different lists. How to bind to only one item in a collection, since I don't want to display all of them? Thats how i work with a list collection <ListView HasUnevenRows="True" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" ItemsSource="{Binding Symptoms}"> <ListView.ItemTemplate> <DataTemplate> <TextCell Text="{Binding Symptom}"/> </DataTemplate> </ListView.ItemTemplate> </ListView> but now i want to display only one item of the list as text of a label! How can i do that? Thanks

Best Answer

Answers

  • EBatikEBatik NLMember ✭✭✭

    Should i work with binding context? triggers ? styles?

Sign In or Register to comment.