locked
Playing and pausing a video RRS feed

  • Question

  • I have imported a videoclip into Expression Blend 4 using the MediaElement asset. I am now trying to create a button to play and pause the video. I have tried using the ToggleButton but am not geting results. 

    What is the best way to go about creating a button to play and pause a video?

    Thank you! 

    Wednesday, April 4, 2012 5:42 PM

All replies

  • You might want to check out this article that shows how, and you could still use a Toggle button and just customize the template to have the Play & Pause icon visible based on its state. There's also a great section in a book called Foundation Expression Blend with Silverlight by Victor Gaudioso that includes an excercise accomplishing exactly what you're after that includes sample project and step-by-step walk through you might check out.

    Please mark answers as helpful when used, and answered when completed.

    Wednesday, April 4, 2012 5:54 PM
  • Hillary,

    Is the LoadedBehavior set to manual?  Try changing that if it isn't and see if your buttons don't start responding to your code-behind.

    ~Christine

    Wednesday, April 4, 2012 7:50 PM