简体   繁体   中英

how to play a sound in wp7 when user clicks a icon

I've many 'words' in my project. There is a listen icon next to each words. I want to know how i can play a sound when user clicks on the icon. All my sound clippings are only of 1 second.

Use the XNA SoundEffect class.

You find a code sample here , where a similar question has already been asked.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM