예제 #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AudioButton but = ((AudioButton)sender);

            //but.AudioStream.Position = 0;
            but.Play(but.AudioStream, false);
        }
예제 #2
0
        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);
            }
        }