Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok guys I think I saw where i went wrong (FEELING SILLY)</p> <pre><code> ContextMenu contextMenu1 = new ContextMenu(); MenuItem vidPlay = new MenuItem() { Header = "Play" }; vidPlay.Click += new System.Windows.RoutedEventHandler(PlayVid_Click); MenuItem vidPause = new MenuItem() { Header = "Pause" }; vidPlay.Click += new System.Windows.RoutedEventHandler(PauseVid_Click); MenuItem vidStop = new MenuItem() { Header = "Stop" }; vidPlay.Click += new System.Windows.RoutedEventHandler(StopVid_Click); </code></pre> <p>I forgot to correct the vidPlay in the 2nd and 3rd items when i pasted it :/ Corrected to :</p> <pre><code> ContextMenu contextMenu1 = new ContextMenu(); MenuItem vidPlay = new MenuItem() { Header = "Play" }; vidPlay.Click += new System.Windows.RoutedEventHandler(PlayVid_Click); MenuItem vidPause = new MenuItem() { Header = "Pause" }; vidPause.Click += new System.Windows.RoutedEventHandler(PauseVid_Click); MenuItem vidStop = new MenuItem() { Header = "Stop" }; vidStop.Click += new System.Windows.RoutedEventHandler(StopVid_Click); </code></pre> <p>and a little extra tip (that was a pain to me for some hours), u might have to use the lines</p> <pre><code> //setting behaviour of MediaElement-This allows to INVOKE the play() / pause() / stop() methods appropriately *08 nv 2013* me.LoadedBehavior = MediaState.Manual; me.UnloadedBehavior = MediaState.Stop; </code></pre> <p>So that you do not get trouble invoking the <code>play()</code> , <code>pause()</code> and <code>stop()</code> methods</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload