locked
NEED HELP!!! MediaElement not working. RRS feed

  • Question

  • Hey guys currently making an app for Windows Phone 7 and im using Blend 4 and visual studio 2010 express for windows phone . I'm working on a Tutorial page and it's a phone pivot page. I added the MediaElement into the first page. and did all the coding and it plays when i press the play button but when i made another pivot page and added the mediaelement to it and added the play pause and stop buttons and i programmed them and deployed the app the mediaelement didn't work on the second pivot page. It works fine on the first page but nothing on the second page. Here is my coding for the first page.

    Private Sub play1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles play1.Click
            MediaElement1.Play()
        End Sub
    
        Private Sub pause1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles pause1.Click
            MediaElement1.Pause()
        End Sub
    
        Private Sub stop1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles stop1.Click
            MediaElement1.Stop()
        End Sub

    Did this in visual basic form.

    Please help me. What's wrong

    Friday, June 22, 2012 2:28 AM