title: WP7 how to detect when audio track goes to end?
body: <p>I'm using <code>BackgroundAudioPlayer</code> agent in my Windows Phone 7 application. When the track end, the agent side receives <code>TrackEnded</code> event, but UI side doesnot receive any events. </p>
  
  <p>Also, when I intentionally set audio track 's position to its end, then call <code>Play()</code>, the agent side receives <code>TrackEnded</code> event (because the track has come to an end), but the UI side does receive <code>Stopped</code> in its <code>PlayStateChanged</code> handler. So weird !</p>
  
  <p>How to let UI know that an track has come to an end ? Communicating through isolated storage is not my favorite !</p>