Simple way to play sounds in C# WPF

Playing a sound in your WPF application is pretty straightforward. But you need to pay attention to some details.