I developing the game "minesweeper" ( Wiki ), and I want to play sound when the user hit a bomb. How can I play a sound while the application is running?
Thank you for help
You can use WPF's MediaElement for this. For more information, visit the official documentation: https://msdn.microsoft.com/en-us/library/system.windows.controls.mediaelement(v=vs.100).aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.