Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 149743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:10:44+00:00 2026-05-11T09:10:44+00:00

I have a simple app, that has media element in it, and it plays

  • 0

I have a simple app, that has media element in it, and it plays some movies, one after another. I want to have a 15 seconds delay between one movie stops playing, and the next one starts. I’m new to WPF and though I know how to do this the old (WinForms) way with a Timer and control.Invoke, I thought that there must be a better way in WPF. Is there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:10:45+00:00Added an answer on May 11, 2026 at 9:10 am

    The DispatcherTimer is what you want. In this instance you’d create a DispatcherTimer with an interval of 15 seconds, kick off the first video. Then when that video has completed enable the timer and in the tick event show the next video, and set the timer to disabled so it doesn’t fire every 15 seconds. DispatcherTimer lives in the System.Windows.Threading namespace.

    DispatcherTimer yourTimer = new DispatcherTimer();  yourTimer.Interval = new TimeSpan(0, 0, 15); //fifteen second interval yourTimer.Tick += new EventHandler(yourTimer_Tick); firstVideo.Show(); 

    Assuming you have an event fired when the video is finished then set

    yourTimer.Enabled = True; 

    and then in the yourTimer.Tick event handler

    private void yourTimer_Tick(object sender, EventArgs e) {     yourTimer.Enabled = False;//Don't repeat every 15 seconds     nextVideo.Show(); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple app that has a list of clients in one table
I have a rails app that has some simple functionality, allowing the user to
We have an app that uses simple one way binding with a GridView to
I have an simple android app that I want to write on the display
I am creating a simple app that let's the user view movies after clicking
I have a simple db.Model , that has one of the fields db.ListProperty(users.User) For
I have a simple app that uses an SQL Express 2005 database. When the
I have a simple iphone app that's based on the CrashLanding sample app. So
Let's say I have a fairly simple app that lets users store information on
I'm writing a simple app that's going to have a tiny form sitting in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.