XAML ListView: header binding not working
<p>I can't make the <code>{Binding Title}</code> in the <code>HeaderTemplate</code> appear.</p>

<p>This is the class connected to the BindingContext:</p>

<pre><code>class SensorGroup
{
    public string Title { get; set; }
    public IList&lt;Sensor&gt; Sensors { get; set; }
}
</code></pre>

<p>XAML:   </p>

<pre><code>&lt;ListView  Header=""
           ItemsSource="{Binding Sensors}"&gt;

  &lt;ListView.HeaderTemplate&gt;
    &lt;DataTemplate&gt;
      &lt;Grid&gt;
        &lt;Label Text="{Binding Title}"/&gt;
      &lt;/Grid&gt;
    &lt;/DataTemplate&gt;
  &lt;/ListView.HeaderTemplate&gt;

  &lt;ListView.ItemTemplate&gt;
  ...
&lt;/ListView&gt;
</code></pre>

<p>If I replace it with <code>&lt;Label Text="Some static text"/&gt;</code>, the text appears.</p>

<p>I have found <a href="https://stackoverflow.com/questions/16654305/wpf-datagridtemplatecolumn-header-binding-not-working">this related question</a>, which links to <a href="https://stackoverflow.com/questions/6857780/how-to-hide-wpf-datagrid-columns-depending-on-a-property/6858917">this other question</a>. But I could not make it work. I tried:</p>

<pre><code>&lt;ContentPage.Resources&gt;
    &lt;Label x:Key="MyTitle"
            Binding="{Title}"/&gt;
&lt;/ContentPage.Resources&gt;

...

&lt;Grid&gt;
    &lt;StaticResource ResourceKey="MyTitle"/&gt;
&lt;/Grid&gt;
</code></pre>

<p>It gives me an error saying that the binding with <code>Title</code> cannot be found.</p>