title: Syntax error binding to a static resource in Silverlight
body: <p>I am having a problem with accessing Application Resources from a UserControl in my Silverlight application.  Here is my UserControl:</p>
  
  <pre><code>&lt;UserControl x:Class="MyApp.MainControl"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
      xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" &gt;
      &lt;basics:TabControl TabStripPlacement="Left"&gt;
          &lt;basics:TabItem Name="tabHome" Header="Home"&gt;&lt;/basics:TabItem&gt;
          &lt;basics:TabItem Name="tabPatients" Header="{StaticResource My_Patients}"&gt;&lt;/basics:TabItem&gt;
          &lt;basics:TabItem Name="tabOrganization" Header="My Organization"&gt;&lt;/basics:TabItem&gt;
      &lt;/basics:TabControl&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>I am getting an error on the line where I set the Header property of the tabPatients tab to the static resource My_Patients.</p>
  
  <p>Here is my Application file:</p>
  
  <pre><code>&lt;Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:System="clr-namespace:System;assembly=mscorlib" 
               x:Class="MyApp.App"&gt;
      &lt;Application.Resources&gt;
          &lt;System:String x:Key="My_Patients"&gt;All My Patients&lt;/System:String&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>
  
  <p>Can anyone tell me what is wrong?</p>