Author: cdubone | Posted on: 6/21/2008 4:19:04 PM | Views : 321

This was posted as a follow up question in another thread but I thought it would be more appropriate in it's own thread. 
I'm making an app that dynamically loads different media files into
a single media element. Click a button and a different media file
loads. For certain reasons I am inserting the media files one of two different ways.
The first way is:
theMedia.Source = new Uri("intro.wmv", UriKind.Relative);
The second way is upacking it (and a bunch of other files) from a downloaded zip using:
StreamResourceInfo mediaResourceInfo = Application.GetResourceStream(zipResourceInfo, new Uri("gettingstarted.mp3", UriKind.Relative))
this.theMedia.SetSource(mediaResourceInfo.Stream);

All that is fine.

Now I'm making a 'next' button. I've been trying to accomplish this by finding out which media file is loaded and taking
the appropriate action based on that. So far I have:

Go to the complete details ...