Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

im working on wpf.

so as my requirement im desgining the mainwindow with viewbox for all pages.

the mainwindow have 6 pages. So, here

at the first time only one window will be display after particular time will be show another window.

in windows application it is possible because timer control is ther but wpf how can do this functionality.

Let me know how to implement this?

Thanks in advance...........
Posted

1 solution

Use DispatcherTimer[^]
System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = new TimeSpan(0,0,1); // 1 sec
dispatcherTimer.Start();


private void dispatcherTimer_Tick(object sender, EventArgs e)
{
  // code goes here
  // close current window
  // show new window 
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900