.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Code Snippets >> WPF >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Playing a song in WPF

Posted By:Abhisek Panda       Posted Date: February 28, 2010    Points: 10    Category: WPF    URL: http://www.dotnetspark.com  

Playing a song in WPF

Use the following code to play a song using WPF. You have to specify the path of the song. First you have to add a MediaElement.


When the window will load it will start playing the song.


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend