title: Using Value Converters in WPF without having to define them as resources first
body: <p>Is it possible to use value converters without having to define them beforehand as resources?</p>
  
  <p>Right now I have</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;local:TrivialFormatter x:Key="trivialFormatter" /&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;Button Width="{Binding Width, 
                 ElementName=textBox1, 
                 UpdateSourceTrigger=PropertyChanged, 
                 Converter={StaticResource trivialFormatter}}"&gt;
  </code></pre>
  
  <p>Wouldn't it be possible that instead of having to declare the trivialFormatter resource in Window.Resources, I could directly refer it from the Button's width binding? Something like</p>
  
  <pre><code>Converter = {local:TrivialFormatter}
  </code></pre>
  
  <p>Thanks</p>