title: Can I filter a collection from xaml?
body: <p>I have a wpf-mvvm application.</p>
  
  <p>I have an observable collection in my viewmodel</p>
  
  <pre><code>public ObservableCollection&lt;BatchImportResultMessageDto&gt; ImportMessageList { get; set; } 
  </code></pre>
  
  <p>"BatchImportResultMessageDto" contains two properties..</p>
  
  <p>result type..and message. Result type can be success or failure.</p>
  
  <p>I need to display success in one list box ..and failure in another listbox.</p>
  
  <p>I can do this..by having 2 observable collections in viewmodel to hold success/failure.</p>
  
  <pre><code>public ObservableCollection&lt;BatchImportResultMessageDto&gt; ImportFailureMessageList { get; set; } // To hold the failure messages.
  public ObservableCollection&lt;BatchImportResultMessageDto&gt; ImportSuccessMessageList { get; set; } // To hold the sucess messages.
  </code></pre>
  
  <p>But is there any other better way so that i can filter it (without new two collections) ?</p>