title: Get picker value inside a listview after button click
body: <p>I have Xamarin.Forms app in which I use a picker inside a listview.After binding the data to listview the output will have 5 pickers. I have a submit button in that page. I want to get the 5 values of picker when the button is clicked. How can I do that? Any help is appreciated.</p>
  
  <p><strong>My Xaml</strong></p>
  
  <pre><code>  &lt;StackLayout Orientation="Vertical" &gt; 
                      &lt;ListView  x:Name="QuestionsListView"  ItemsSource="{Binding}"
                           HasUnevenRows="True"                                       
                           IsVisible="False"      
                          ItemTapped="QuestionsListView_ItemTapped"
                           CachingStrategy="RecycleElement"
                           SeparatorVisibility="Default"                            
                           HorizontalOptions="FillAndExpand"
                           VerticalOptions="FillAndExpand"&gt;
                          &lt;ListView.ItemTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;ViewCell&gt;
                                      &lt;ViewCell.View&gt;
                                          &lt;StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Orientation="Vertical"&gt;
                                              &lt;StackLayout Orientation="Horizontal"&gt;
                                                  &lt;Label Text="•" FontSize="Medium" TextColor="Green" Margin="0,20,0,0"/&gt;
                                                  &lt;Label Text="{Binding Ques}" MaxLines="5" FontSize="Small" TextColor="#474747" Margin="0,20,0,5"&gt;                                                
                                                  &lt;/Label&gt;
                                              &lt;/StackLayout&gt;
                                              &lt;StackLayout Orientation="Horizontal" Margin="10,0,10,0" HorizontalOptions="FillAndExpand" &gt;
                                                  &lt;Picker x:Name="picker1" Title="Select answer" ItemsSource="{Binding Answers}" ItemDisplayBinding="{Binding Text}" HorizontalOptions="FillAndExpand" FontSize="Small" TextColor="Gray"&gt;
                                                  &lt;/Picker&gt;                                             
                                              &lt;/StackLayout&gt;
                                          &lt;/StackLayout&gt;
                                      &lt;/ViewCell.View&gt;
                                  &lt;/ViewCell&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/ListView.ItemTemplate&gt;
                      &lt;/ListView&gt;
                      &lt;Button Text="Submit" BackgroundColor="#10c0d5" Clicked="evaluate_clicked" TextColor="White" HorizontalOptions="FillAndExpand" BorderRadius="7" BorderColor="#10c0d5" BorderWidth = "2" Margin="10,5,10,10"&gt;&lt;/Button&gt;
                  &lt;/StackLayout&gt;
  </code></pre>
  
  <p><strong>My Xaml.cs</strong></p>
  
  <pre><code> private async void evaluate_clicked(object sender, EventArgs args)
          {
              //How can I get the picker values?
          }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/o3w9D.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o3w9D.jpg" alt="enter image description here"></a></p>