WPF Storyboard delay in playing wma files
- by Rita
I'm a complete beginner in WPF and have an app that uses StoryBoard to play a sound.
public void PlaySound()
{
MediaElement m = (MediaElement)audio.FindName("MySound.wma");
m.IsMuted = false;
FrameworkElement audioKey = (FrameworkElement)keys.FindName("MySound");
Storyboard s = (Storyboard)audioKey.FindResource("MySound.wma");
…