title: Using Resources in different WPF xaml user control
body: <p>I have two projects. One is a library and other one is a WPF application. In my library project I created a resources file (Resources.resx) and added some string in it and made its access as public.</p>
  
  <p>Now in my WPF project I added reference of library project. Now I am trying to use library resource file in my XAML control.</p>
  
  <p>Here is my code. Here MyApplication is wpf project and MyLibrary is dll project.</p>
  
  <pre><code>&lt;UserControl x:Class="MyApplication.LauncherView"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
               xmlns:p="clr-namespace:MyLibrary"
      &lt;StackPanel&gt;
          &lt;Button Content="{x:Static p:Resources.TextFromResource}" Command="{Binding LaunchCommand}" /&gt;
      &lt;/StackPanel&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>But at the end I receive these errors.</p>
  
  <p>Error   1   The name "Resources" does not exist in the namespace "clr-namespace:MyLibrary".
  Error   2   Cannot find the type 'Resources'. Note that type names are case sensitive.</p>