title: handle MediaElement events like MediaOpened, BufferingStarted with MVVM pattern?
body: <p>I have done many searches and cannot find a sample on how to do this.</p>
  
  <p>The goal is to handle these events in the view model while avoiding code in the code behind the view. Sample code and XAML would be appreciated. If your solution requires the use of an external DLL please provide source code.</p>
  
  <p>The view model should compile independent of the existence of any View.</p>
  
  <p>Actually, I'm not sure this can be done. Any insight on this issue is welcome.</p>
  
  <p>See sample code on progress so far.</p>
  
  <p><a href="http://database.hugetiger.com/dbExplore/MVVMCode.aspx" rel="nofollow">http://database.hugetiger.com/dbExplore/MVVMCode.aspx</a></p>
  
  <p>Currently mediaopend event msgbox comes from code behind. How can this be modified so that msgbox comes from the MyViewModel class?</p>