PAUSING WINDOW WPF APPLICATION

Brad Pitt

Total Post:61

Points:429
Posted by  Brad Pitt
WPF 
WPF
 1353  View(s)
Ratings:
Rate this:
Hi Expert! 

I'd like to play a video when no mouse action is launch and the cursor is not moving for 10 seconds. I'd like to know how can i test this condition in WPF and what is the best method to do it.

Any help will be appreciated!
Thanks in advance!

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: Pausing window wpf application

    Hi Brad!


    Try as following 

     if (button1.Content.Equals("Play"))
                {
                    button1.Content = "Pause";
                    mediaElement1.Play();
                }
                else
                {
                    button1.Content = "Play";
                    mediaElement1.Pause();
                }

    I hope it is helpful to you

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!