title: StaticResource not found for key
body: <p>When trying to <a href="https://developer.xamarin.com/guides/xamarin-forms/working-with/triggers/#Multi_Triggers" rel="nofollow">create a "require all" multi trigger within Xamarin</a>, I throw an exception when executing.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Xamarin.Forms.Xaml.XamlParseException: Position 18:25. StaticResource
    not found for key dataHasBeenEntered</p>
  </blockquote>
  
  <p>Which highlights there error in RaceTeam.MyPage.xaml.g.cs (last line)</p>
  
  <pre><code>//  &lt;autogenerated&gt;
  
  namespace RaceTeam {
      using System;
      using Xamarin.Forms;
      using Xamarin.Forms.Xaml;
  
  
      public partial class MyPage : global::Xamarin.Forms.ContentPage {
  
          [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
          private global::Xamarin.Forms.Entry carWeight;
  
          [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
          private global::Xamarin.Forms.Entry carDistro;
  
          [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
          private global::Xamarin.Forms.Button calculateButton;
  
          [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
          private void InitializeComponent() {
              this.LoadFromXaml(typeof(MyPage)); //this line
  </code></pre>
  
  <p>MyPage.xaml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ContentPage 
  xmlns="http://xamarin.com/schemas/2014/forms" 
  xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  xmlns:local="clr-namespace:RaceTeam;assembly=RaceTeam"
  x:Class="RaceTeam.MyPage"&gt;
      &lt;ResourceDictionary&gt;
         &lt;local:MultiTriggerConverter x:Key="dataHasBeenEntered"/&gt;
      &lt;/ResourceDictionary&gt;
      &lt;ContentPage.Padding&gt;
          &lt;OnPlatform x:TypeArguments="Thickness" iOS="20, 40, 20, 20" Android="20, 20, 20, 20" WinPhone="20, 20, 20, 20" /&gt;
      &lt;/ContentPage.Padding&gt;
      &lt;ContentPage.Content&gt;
          &lt;StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Orientation="Vertical" Spacing="15"&gt;
              &lt;Label Text="Car Weight (lbs)" /&gt;
              &lt;Entry x:Name="carWeight" Text="" Keyboard="Numeric" Placeholder="1000-9000" /&gt;
              &lt;Label Text="Car (Front) Distribution %" /&gt;
              &lt;Entry x:Name="carDistro" Text="" Keyboard="Numeric" Placeholder="25-75" /&gt;
              &lt;Button x:Name="calculateButton" Text="Calculate" Clicked="onCalculate" IsEnabled="false"&gt;
                  &lt;MultiTrigger TargetType="Button"&gt;
                      &lt;MultiTrigger.Conditions&gt;
                          &lt;BindingCondition Binding="{Binding Source={x:Reference carWeight}, Path=Text.Length, Converter={StaticResource dataHasBeenEntered}}" Value="true"/&gt;
                          &lt;BindingCondition Binding="{Binding Source={x:Reference carDistro}, Path=Text.Length, Converter={StaticResource dataHasBeenEntered}}" Value="true"/&gt;
                      &lt;/MultiTrigger.Conditions&gt;
                      &lt;Setter Property="IsEnabled" Value="True" /&gt;
                  &lt;/MultiTrigger&gt;
              &lt;/Button&gt;
          &lt;/StackLayout&gt;
      &lt;/ContentPage.Content&gt;
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p>MyPage.xaml.cs</p>
  
  <pre><code>using System;
  using System.Threading.Tasks;
  using Xamarin.Forms;
  using System.Globalization;
  
  namespace RaceTeam
  {
      public partial class MyPage : ContentPage
      { //...//
      }
  
      public class MultiTriggerConverter : IValueConverter
      {
          public object Convert (object value, Type targetType,
                                object parameter, CultureInfo culture)
          {
              //...//
          }
          public object ConvertBack (object value, Type targetType,
                                    object parameter, CultureInfo culture)
          {
              throw new NotSupportedException ();
          }
      }
  }
  </code></pre>
  
  <p>I'm not familiar with xaml or how c# handles classes, so my troubleshooting hasn't fixed anything.</p>