i need to fill a listbox with items one by one
like the list to be filled with one item than after 1/5 sec an other item will be added to the list
any ideas how this could be done (in wpf)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If you bind the ListBox to an
ObservableCollection<T>, you can only modify the collection from the UI thread. So you could use aDispatcherTimer, which raises theTickevent on the UI thread, or use a specialized collection like this one and fill it from another thread