title: What is the proper way to bind a radio button in MVVM / MVVM Light
body: <p>I'm currently binding my radio buttons individually, in other words, I have a <code>command</code> for each one, everything works fine but I would like to somehow have only one command where all of them bind.</p>
  
  <p>Here is what I have...</p>
  
  <p><strong>XAML:</strong></p>
  
  <pre><code>&lt;RadioButton x:Name="radioButton1" 
                           Content="RadioButton1"  
                           IsChecked="True"
                           Command="{Binding RadioButton1Command }"/&gt;
  &lt;RadioButton x:Name="radioButton2" 
                           Content="RadioButton2"  
                           IsChecked="True"
                           Command="{Binding RadioButton2Command }"/&gt;
  </code></pre>
  
  <p><strong>ViewModel:</strong></p>
  
  <pre><code>    public RelayCommand RadioButton1Command { get; }
      public RelayCommand RadioButton2Command { get; }
  
      public MyClassConstructorViewModel()
      {
          RadioButton1Command = new RelayCommand(radioButton1Click);
          RadioButton1Command = new RelayCommand(radioButton2Click);
      }
  
  
      private void radioButton1Click()
      {
          Console.WriteLine("Radio Button 1 Clicked...");
      }
      private void radioButton2Click()
      {
          Console.WriteLine("Radio Button 2 Clicked...");
      }
  </code></pre>
  
  <p>Is there a way to bind all radio buttons to a single <code>RelayCommand</code> and be able to respond accordingly?</p>
  
  <p>Thanks!</p>