private void button_Click(object sender, RoutedEventArgs e) { AudioButton but = ((AudioButton)sender); //but.AudioStream.Position = 0; but.Play(but.AudioStream, false); }
private void btLeximPlay_Click(object sender, RoutedEventArgs e) { AudioButton but = ((AudioButton)sender); //but.AudioStream.Position = 0; if (but.AudioStream != null) { but.Play(but.AudioStream, false); } }