---
title: "Pausing window wpf application"  
description: "Pausing window wpf application"  
author: "Anonymous User"  
published: 2013-05-13  
updated: 2013-05-13  
canonical: https://www.mindstick.com/forum/874/pausing-window-wpf-application  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# Pausing window wpf application

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)! \
I'd like to play a [video](https://www.mindstick.com/articles/290133/6-necessary-preparations-you-need-before-editing-a-video) when no [mouse](https://yourviews.mindstick.com/story/5122/the-story-behind-lord-ganesha-s-mouse-mushak) [action](https://www.mindstick.com/forum/155752/what-is-action-result-with-its-types) is [launch](https://www.mindstick.com/news/2241/what-does-the-launch-of-google-cloud-s-own-node-hosting-service-mean-for-web3-developers) and the [cursor](https://www.mindstick.com/articles/13003/create-a-simple-cursor-in-sql-server) is not moving for 10 seconds. I'd like to know how can i [test](https://yourviews.mindstick.com/story/1427/explosive-facts-about-trinity-test-world-s-first-nuclear-bomb) this [condition](https://www.mindstick.com/forum/12711/select-query-with-and-condition) in WPF and what is the best [method](https://www.mindstick.com/forum/166/webservice-method) to do it.\
Any help will be appreciated!Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!\

## Replies

### Reply by AVADHESH PATEL

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


---

Original Source: https://www.mindstick.com/forum/874/pausing-window-wpf-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
