title: Add converter to page resources from code behind
body: <p>I would like to add a specific instance of a class to the resources of a page then use that class as a converter, so in my page constructor I put:</p>
  
  <pre><code>this.Resources.Add("converterASD", new ASDConverter());
  </code></pre>
  
  <p>then bind to it like this:</p>
  
  <pre><code>&lt;ListBox ItemsSource="{Binding Converter={StaticResource converterASD}}"/&gt;
  </code></pre>
  
  <p>but I keep getting this exception:</p>
  
  <blockquote>
    <p>Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an
    exception.</p>
  </blockquote>
  
  <p>I'm a bit new to WPF, any advice would be appreciated.</p>