title: Xamarin.Forms.Xaml.XamlParseException: Position 10:18. StaticResource not found for key TwoButtonTopBarTemplate
body: <p>I keep getting this error: </p>
  
  <pre><code>Xamarin.Forms.Xaml.XamlParseException: Position 10:18. StaticResource not found for key TwoButtonTopBarTemplate.
  </code></pre>
  
  <p>I am trying to use a template I made on this page, works on a different page when I do it the same way.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;likeit:InformationPage
      xmlns:likeit="clr-namespace:LikeIT" 
      xmlns="http://xamarin.com/schemas/2014/forms"
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
      xmlns:devsdna="clr-namespace:DevsDNA;assembly=DevsDNA.GradientBoxView"
      x:Class="LikeIT.News"&gt;
  
      &lt;ContentView x:Name="newsContentView"
          ControlTemplate="{StaticResource TwoButtonTopBarTemplate}" HeightRequest="100"&gt;
  
          &lt;StackLayout Spacing="3"&gt;
  ...
          &lt;/StackLayout&gt;
      &lt;/ContentView&gt;
  &lt;/likeit:InformationPage&gt;
  
  </code></pre>
  
  <p>Of course I am using this in my .cs file.</p>
  
  <pre><code>public partial class News : InformationPage
  </code></pre>
  
  <p>My TwoButtonTopBarTemplate is defined in App</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;Application xmlns="http://xamarin.com/schemas/2014/forms"
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
      xmlns:abstractions="clr-namespace:RoundedBoxView.Forms.Plugin.Abstractions;assembly=RoundedBoxView.Forms.Plugin.Abstractions"
      xmlns:controls="clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin"
      x:Class="LikeIT.forms.App"&gt;
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ControlTemplate x:Key="TwoButtonTopBarTemplate"&gt;
  ...
              &lt;/ControlTemplate&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>
  
  <p>Thank you in advance.</p>