title: Using Resource files in XAML in Xamarin.Forms
body: <p>I'm trying to use a resource file in my XAML. For some reason i keep getting the error of not finding the type <code>Texts</code>. Not sure what I'm doing wrong here.</p>
  
  <p><strong>XAML</strong></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:CashRegisterApp.Resources"
               x:Class="CashRegisterApp.Start"&gt;
      &lt;ContentPage.Content&gt;
          &lt;StackLayout
              VerticalOptions="CenterAndExpand" 
                  HorizontalOptions="CenterAndExpand" &gt;
          &lt;Label Text="{x:Static local:Texts.Start}"/&gt;
          &lt;/StackLayout&gt;
      &lt;/ContentPage.Content&gt;
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p><strong>RESX</strong></p>
  
  <p><a href="https://i.stack.imgur.com/FfAfu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FfAfu.png" alt="resx file"></a></p>
  
  <p>Solution explorer</p>
  
  <p><a href="https://i.stack.imgur.com/fEuyU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fEuyU.png" alt="solution explorer"></a></p>