title: Xamarin Forms Command Binding inside ListView is not working
body: <p>i'm trying to bind a command to a button inside a listView, but without success. I follow all other answers posted here, like this one:
  <a href="https://stackoverflow.com/questions/40913439/xamarin-forms-button-command-binding-inside-a-listview]">Xamarin Forms Button Command binding inside a ListView</a>
  The actual result is that nothing happens. A thing that i notice is that visual studio, when i type after <code>x:Reference</code> suggests me just <code>GridWebcam</code>, like if it doesn't see other reference elements. What can i do?</p>
  
  <p>Here my code:</p>
  
  <pre><code>    &lt;ContentPage 
               ...
               x:Name="WebcamList"&gt;
      &lt;ContentPage.Resources&gt;
          ...
      &lt;ContentPage.Content&gt;
          &lt;ListView ItemsSource="{Binding ListOfWebcam}"
                    SeparatorVisibility="None"
                    CachingStrategy="RecycleElement"
                    RowHeight="250"
                    VerticalOptions="FillAndExpand"
                    x:Name="ListWebcam"&gt;
  
              &lt;ListView.Header&gt;
                  &lt;StackLayout x:Name="HeaderStackLayout"
                                     Padding="5,25,0,30"
                                     Orientation="Horizontal"
                                     HorizontalOptions="FillAndExpand"&gt;
  
                          &lt;Label  x:Name="LabelHeader"
                                    Text="Webcam:"
                                    FontSize="Large"
                                    FontAttributes="Bold"
                                    TextColor="{x:Static statics:Palette.PrimaryColor}"
                                    VerticalOptions="Center"
                                    HorizontalOptions="Start" Margin="10,0,0,0"/&gt;
                  &lt;/StackLayout&gt;
              &lt;/ListView.Header&gt;
  
              &lt;ListView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
  
                      &lt;controls:ExtendedViewCell IsEnabled="False"&gt;
                          &lt;controls:ExtendedViewCell.View&gt;
                              &lt;Grid x:Name="GridWebcam"&gt;
                                  &lt;Grid.RowDefinitions&gt;
                                      &lt;RowDefinition Height="Auto"/&gt;
                                      &lt;RowDefinition Height="Auto"/&gt;
                                  &lt;/Grid.RowDefinitions&gt;
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition Width="Auto"/&gt;
                                      &lt;ColumnDefinition Width="*"/&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
  
                                  &lt;Frame Grid.Column="1"
                                         Grid.RowSpan="2"
                                         CornerRadius="20"
                                         BackgroundColor="{x:Static statics:Palette.PrimaryColor}"
                                         VerticalOptions="FillAndExpand"
                                         HorizontalOptions="FillAndExpand"
                                         HasShadow="True"
                                         Margin="5,10"&gt;
  
                                      &lt;StackLayout&gt;
  
                                          &lt;Label Text="{Binding t_str_vid,Converter={StaticResource WebcamNameConverter}}"
                                                 FontSize="Medium"
                                                 TextColor="White"
                                                 FontAttributes="Bold"
                                                 HorizontalOptions="FillAndExpand"
                                                 VerticalOptions="FillAndExpand"&gt;
  
                                          &lt;/Label&gt;
  
                                          &lt;Label TextColor="White"
                                                 FontSize="Medium"
                                                 Text="{Binding direzione,Converter={StaticResource DirectionToStringConverter}}"/&gt;
  
                                          &lt;StackLayout Orientation="Horizontal"&gt;
                                              &lt;ffimageloading:CachedImage LoadingPlaceholder="Rolling.gif"
                                                                          DownsampleToViewSize="False"
                                                                          VerticalOptions="FillAndExpand"
                                                                          HorizontalOptions="StartAndExpand"
                                                                          Source="{Binding image1}"/&gt;
  
                                              &lt;iconize:IconButton Text="fas-play-circle"
                                                                  FontSize="50"
                                                                  HorizontalOptions="EndAndExpand"
                                                                  VerticalOptions="EndAndExpand"
                                                                  TextColor="White"
                                                                  Command="{Binding BindingContext.OpenVideoWebcamCommand, Source={x:Reference WebcamList}}"
                                                                  CommandParameter="{Binding .}"
                                                                  BackgroundColor="Transparent"/&gt;
                                          &lt;/StackLayout&gt;
                                      &lt;/StackLayout&gt;
                                  &lt;/Frame&gt;
                              &lt;/Grid&gt;
                          &lt;/controls:ExtendedViewCell.View&gt;
                      &lt;/controls:ExtendedViewCell&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListView.ItemTemplate&gt;
          &lt;/ListView&gt;
      &lt;/ContentPage.Content&gt;
  &lt;/ContentPage&gt;
        ```
  </code></pre>
  
  <pre><code>public class WebcamListViewModel : BaseViewModel
  {
      public ICommand OpenVideoWebcamCommand { set; get; }
  
      private List&lt;Webcam&gt; _ListOfWebcam { get; set; }
      public List&lt;Webcam&gt; ListOfWebcam
      {
          get { return _ListOfWebcam; }
          set
          {
              _ListOfWebcam = value;
              OnPropertyChanged();
          }
      }
  
      private Task DownloadFramesTask;
  
      CancellationTokenSource tokenSourceDownloadFrames = new CancellationTokenSource();
  
      CancellationToken cancellationTokenDownloadFrames;
  
      public WebcamListViewModel(INavigationService navigationService, IApiAutostradeManagerFactory apiAutostradeManagerFactory) : base(navigationService,apiAutostradeManagerFactory)
      {
  
          OpenVideoWebcamCommand = new Command&lt;Webcam&gt;(async (webcam) =&gt; {
              await navigationService.NavigateAsync(Locator.WebcamVideoPopUpPage);
              Messenger.Default.Send(new InfoWebcamVideoMessage(webcam.c_mpr, webcam.c_uuid, webcam.t_str_vid));
          });     
  }
  </code></pre>