title: Setting a Style using Binding in XAML
body: <p>I need to set a <code>Style</code> of a given control according to some configuration value in Silverlight. I would like to have a possibility of choosing a <code>Style</code> for a control from two available styles (static resources). I was trying to do something like:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;TextBox Style="{Binding ABC}"/&gt;
  </code></pre>
  
  <p>where</p>
  
  <pre><code>public string ABC
  {
      get {return "{StaticResource MyStyle}";}
  }
  </code></pre>
  
  <p>Unfortunately, that does not work.</p>
  
  <p>Do you have any ideas?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Cheers</p>