I want to make a WPF pogram like this:
When run the program,the main window shows,five seconds later,another window shows.
How can I achieve it? I have seen the timer,but I can’t do it.
I want to make a WPF pogram like this: When run the program,the main
Share
Thanks to @Kshitij Mehta for pointer regarding DispatcherTimer.
In your
MainWindow, define a DispatcherTimer and pop up another window on Tick like this –Call
StartTimer()in yourMainWindowconstructor.