title: I am not able to access x:Name of controls in ListView in XAML and Code behind
body: <p>I have a ListView in Xamarin forms which has a custom cell in it. The custom cell contains an Image control with a x:Name attribute. Now I tried to bind an activity indicator IsRunning Property to the Image IsLoading Property and Xamarin forms could not find the Image using the x:Name. I tried accessing from the backend too, same thing.</p>
  
  <p>I added other elements in the Listview and their x:Name were not visible too. </p>
  
  <p>NB: I can access x:Name of controls I put outside the ListView so it is looking like a listview issue.</p>
  
  <pre><code>&lt;StackLayout&gt;
      &lt;ActivityIndicator x:Name="activity" Color="Purple" HeightRequest="50" WidthRequest="50" IsRunning="{Binding Source={x:Reference Offerimg},Path=IsLoading}"&gt;&lt;/ActivityIndicator&gt;
  
  
      &lt;ListView x:Name="OfferLV" HasUnevenRows="True" x:FieldModifier="Public" SeparatorVisibility="None" BackgroundColor="White"&gt;
          &lt;ListView.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;ViewCell &gt;
                      &lt;StackLayout Padding="0,10,0,10"&gt;
                          &lt;Image  x:Name="offerimg" HeightRequest="500" WidthRequest="100" Aspect="AspectFill"&gt;&lt;/Image&gt;
                      &lt;/StackLayout&gt;
                  &lt;/ViewCell&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
  &lt;/StackLayout&gt;
  </code></pre>