private void axWindowsMediaPlayer_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) { if (myPlayList.Items.Count >= 1) if (e.newState == (int)WMPLib.WMPPlayState.wmppsMediaEnded) { myPlayList.Items.Remove(myPlayList.Items[0]); string CurrentCell = ((DataItem)myPlayList.Items[0]).Column3; GetFirstItemOfPlayList.Content = (CurrentCell); player.URL = CurrentCell; player.Ctlcontrols.play(); } }
System.Windows.Media.MediaPlayer
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)