What is the proper way to dispose of the mediaplayer in order to avoid memory leaks and circular references? I profiled my app using the vs memory tool and when I opened and closed the page which contained the media player I saw multiple references to
I'm currently doing something like this in the unloaded event:
private void MPlayer_Unloaded(object sender, RoutedEventArgs e)
MPlayer = null;
Anything else that needs to be done to avoid leaks?