title: How to exclude viewmodel properties from CA1811
body: <p>Using VS 2010/.Net 4.0, Code Analysis warning CA1811 (see below) is fired on all properties in a ViewModel even through they <strong>are</strong> used via XAML binding:  </p>
  
  <p><em>Warning    CA1811 : Microsoft.Performance : 'BackupWindowViewModel.BackupCommand.get()' appears to have no upstream public or protected callers.</em></p>
  
  <pre><code>public ICommand BackupCommand { get { return _backupCommand; } }  &lt;--- CA1811
  
  &lt;Button Content="Backup" Command="{Binding BackupCommand}" /&gt;
  </code></pre>
  
  <p>This is because Code Analysis (currently) does not parse XAML.  My question is, is there a way to exclude <strong>all properties in all ViewModels</strong> (e.g. classes deriving from ViewModelBase) from CA1811?  Having to suppress this warning on each individual property is a huge pain.  </p>