I am trying to play audio files in WPF and I am currently using the following code:
FileTextBox.Text = selectedFileName;
MediaPlayer mp = new MediaPlayer();
mp.Open(new Uri(selectedFileName, UriKind.Relative ));
mp.Play();
It's working well, except that it doesn't plays the sound. What am I doing wrong?