title: How to call method in child xaml from parent in Xamarin Forms ?
body: <p>I need to perform inheritance of one xaml in another, and trigger call from child.
  Child xaml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;ContentView xmlns="http://xamarin.com/schemas/2014/forms" 
                   xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                   x:Class="project.NavigationBar"&gt;
          &lt;ContentView.Content&gt;
                  &lt;Grid&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition Width="*" /&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
  
                      &lt;StackLayout 
                          Orientation="Horizontal"
                          Grid.Column="0"
                          HorizontalOptions="CenterAndExpand"
                          VerticalOptions="End"&gt;
                          &lt;Button
                              x:Name="NavigationBarButton" 
                              Clicked="NavigationBarButton_Clicked" 
                              Text="Gallery"&gt;
                          &lt;/Button&gt;
                      &lt;/StackLayout&gt;
                  &lt;/Grid&gt;
          &lt;/ContentView.Content&gt;
      &lt;/ContentView&gt;
  </code></pre>
  
  <p>Child xaml.cs:</p>
  
  <pre><code>        private void NavigationBarButton_Clicked(object sender, EventArgs e)
          {
          }
  </code></pre>
  
  <p>Parent xaml:</p>
  
  <pre><code>&lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               x:Class="project.main"
               xmlns:views="project.NavigationBar"
              &gt;
      &lt;StackLayout&gt;
                  &lt;views:NavigationBar/&gt;
      &lt;/StackLayout&gt;
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p>Parent xaml.cs:</p>
  
  <pre><code>    private void NavigationBarButton_Clicked(object sender, EventArgs e)
      {
         Get call from child there and do my logic
      }
  </code></pre>
  
  <p>How could i trigger click call in child and throws it in parent?</p>