Вы можете использовать привязку данных, чтобы установить и получить текст записи.
в xaml
<StackLayout>
<Button Text="GetEntryTemplate" Clicked="Button_Clicked"/>
<ListView x:Name="listView">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Entry TextColor="Black" Text="{Binding Content,Mode=TwoWay}"/>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
в вашем коде позади
создать режим (например, моя модель с именем Data)
public class Data
{
public string Content { get; set; }
}
А в содержании страницы
public partial class MainPage : ContentPage
{
public ObservableCollection<Data> MySource { get; set; }
public MainPage()
{
InitializeComponent();
BindingContext = this;
MySource = new ObservableCollection<Data>()
{
new Data() {Content="Entry_1" },
};
listView.ItemsSource = MySource;
}
private void Button_Clicked(object sender, EventArgs e)
{
DisplayAlert("title", MySource[0].Content, "cancel");
}
}