title: Command not triggering in view model which is bind to the contentview inside the accordion content in xamarin forms
body: <p>I am working on xamarin forms and i am facing issue in command. I have accordion items in the view. Inside the accordion item content i have a button. That button command not triggering. I bind the view model in run time to the particular item in the accordions. Please any help would be appreciated.</p>
  
  <p><strong>I tried these below ways didn't work and button not get access the view model command.</strong>
   1. BindingContext="{Binding Source={x:Reference parentView},
      Path=BindingContext}" Command="{Binding ContinueCommand}".
   2. Command="{Binding BindingContext.ContinueCommand,
      Source={x:Reference parentView}}".</p>
  
  <p><strong>In xaml code:</strong></p>
  
  <pre><code>&lt;ContentView xmlns="http://xamarin.com/schemas/2014/forms" 
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:Vm="clr-namespace:RCBazaar.ViewModels"
               x:Class="RCBazaar.Views.Templates.AddressTemplate"
               x:Name="parentView"&gt;
    &lt;ContentView.Content&gt;
          &lt;StackLayout Padding="10"&gt;
              &lt;Label HorizontalTextAlignment="Center" Text="Mr.Akash Dayanand Central office house 1190,23th main,chamarajpete 6th block opposite to corner house Bangalore - 563738 Karnataka, India Tel:+91 9893393377"
                  Style="{StaticResource lblNormal}" LineBreakMode="WordWrap"/&gt;
              &lt;Button Text="Continue" Command="{Binding BindingContext.ContinueCommand, Source={x:Reference parentView}}"&gt;                
              &lt;/Button&gt;
          &lt;/StackLayout&gt;
      &lt;/ContentView.Content&gt;
  &lt;/ContentView&gt;
  </code></pre>