Forum Xamarin Xamarin.Forms

I have two labels inside my Listview, I need to get their text in .cs but I cant access them.

Neeraj_KumarNeeraj_Kumar Member ✭✭
edited September 2019 in Xamarin.Forms

ListView x:Name="listViewStories" Margin="12,0,12,0">
ListView.ItemTemplate>
DataTemplate>
ViewCell>
StackLayout Orientation="Horizontal">
Label x:Name="titleOfStory" >
/StackLayout>
/ViewCell>
/DataTemplate>
/ListView.ItemTemplate>
/ListView>

Not work in .cs file
titleOfStory.Text = "MyTitle"

Answers

Sign In or Register to comment.