title: Enable/disable WPF controls using RadioButtons in XAML
body: <p>My problem is that I have a set of RadioButtons and I want to disable another control depending on which RadioButton is selected.</p>
  
  <p>It is important that I can disable the control if of one of <strong>several</strong> RadioButton is selected.</p>
  
  <p>E.g.</p>
  
  <pre><code>[] Enabled one
  [] Enabled two
  [] Disabled one
  [] Disabled two
  </code></pre>
  
  <p>The control should be disabled if one of the last two buttons are selected.</p>
  
  <p><strong>Note</strong></p>
  
  <p>I intend to answer this question myself (<a href="https://meta.stackexchange.com/questions/17463/can-i-answer-my-own-questions-even-if-i-knew-the-answer-before-asking">Which should be ok according to this link)</a> but I will accept other answers if they solve the problem in a better way.</p>