Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Why DispatcherTimer does not click?
Pierre Michallet
Oct 14 2016 8:34 AM
347
Reply
This WPF application (VisualStudio 2015 Community and .NER Framework 4.5.1) is
expected, when a button is pressed, to write on the console, at a rate of one per second,
all the items contained in List<string> playList.
In fact, the DispatcherTimer_Tick method is never called and consequently playListIndex is never called and the program is stucked in the while loop.
Two files are attached:
MainWindow.xaml.cs
MainWindow.xaml
Thank you in advance for any help
Attachment:
DispatcherTimerTest.zip
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
how to know if a dynamic cell of a dynamic grid is changed
wpf grdiview select all notworking