title: WPF RadioButton Click with RaiseEvent
body: <p>We have a simple control that inherits from a RadioButton.  I would like to programmically check it.</p>
  
  <p>If it were a button we would click we would normally do.</p>
  
  <pre><code>Button MyButton = ...
  MyButtonClickArgs = new RoutedEventArgs(Button.ClickEvent, MyButton);
  MyButton.RaiseEvent(MyButtonClickArgs);
  </code></pre>
  
  <p>So I figured I could do the following with a RadioButton.</p>
  
  <pre><code>RadioButton MyButton = ...
  MyButtonClickArgs = new RoutedEventArgs(RadioButton.CheckedEvent, MyButton);
  MyButton.RaiseEvent(MyButtonClickArgs);
  </code></pre>
  
  <p>No such luck however.  Anyone know what I'm doing wrong.</p>
  
  <p><strong>Update:</strong>
  Upon further exploration is does appear the OnChecked event handler is being called.  However the IsChecked state is false (so it does not do what I expected it to).  If IsChecked is false I would expect it to be true by the time the event handler is called.  At least that is the behavior if I physically click the button.</p>