title: How to add bindings for WindowsFormHost hosted ReportViewer control
body: <p>I'm using Microsoft's <code>ReportViewer</code> control in my WPF application. Since this is a WinForms component, I use the WindowsFormHost control.</p>
  
  <p>I try to follow the MVVM pattern as supported by the <a href="http://waf.codeplex.com" rel="nofollow">WPF Application Framework</a>, so I implemented a <code>ReportViewModel</code> which contains (amongst others) the current report name and the dataset (both can be selected by 'regular' WPF controls, that part works fine).</p>
  
  <p>I'd like to be as "WPF-ish" as possible, so how would I properly set up the binding to the ReportViewer component (which is inside the WindowsFormHost control)? I need to set the <code>ReportViewer.LocalReport.ReportEmbeddedResource</code> property and have a call to <code>ReportViewer.LocalReport.DataSources.Add</code> (and possibly <code>Clear</code>) whenever the view models report name or dataset change. What's the proper way to do that?</p>
  
  <p>Is there any chance to use one of the regular WPF binding mechanisms for that? If yes, how? If no, how would I set up the binding? (its my first 'real' WPF project, so don't be shy to post trivial solutions :) ...)</p>
  
  <p>Thanks!</p>