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

  • SEARCH
  • Home
  • 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 784117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:39:38+00:00 2026-05-14T20:39:38+00:00

EDIT – After playing around with a bunch of potential solutions (using backgroundworker and

  • 0

EDIT – After playing around with a bunch of potential solutions (using backgroundworker and separate threads) I’ve found the key issue here is getting the data binding to be ‘interrupted’. Since the progress bar is an animated circle (not a percent complete) it needs to respond to a timer event at consistent intervals to smoothly animate (which is why I can’t data bind one by one and then send a ‘progress’ update back to the ui thread). Does anyone know of away to allow an animation to take place while data binding is going on? Thanks again for everyone’s input!

Original Q –

I bind a large dataset to a WPF list box which can take a long time (more than ten seconds). While the the data is being bound I’d like to display a circular progress bar

I can’t get the progress bar to show while the data binding is occurring, even though I am trying to do the binding in a backgroundworker. I tested it by making the first line of the backgroundworkd’s dowork event a Thread.Sleep(5000) and sure enough the progress bar started spinning for that duration only to freeze while when the binding started.

Is this because both the databinding and the UI updating have to occur on the same thread? Any ideas on how to work around it?

Thanks for your help!!

  • 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. Editorial Team
    Editorial Team
    2026-05-14T20:39:38+00:00Added an answer on May 14, 2026 at 8:39 pm

    Use an adorner layer and put your progress indicator in that- that will allow it to overlay the controls on the screen and still respond. Load your data on a back thread and periodically update the control you are displaying your results in (i would also recommend using a virtualizing stack panel as your item panel). This way you can keep the progress indicator in the foreground on a timer for animation and push the incoming data to the results view using the dispatcher and a delgate. We implemented a similar solution for a client (large amounds of data coming in via java web services and spooled to grid- progressive discolsure ;)) and it worked like a champ.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: This is with Rails 2.3.5 For some reason, when I try to associate
Edit: fixed several syntax and consistency issues to make the code a little more
EDIT: Please note that this question is OUTDATED; RVM got way easier to use
edit 10/8/10 @ 8:20am est - since I can't make this work in prod,
edit: Retagged as tomcat / jboss , since this could be a question about
EDIT I added in some error handling to my .vbs file and it is
EDIT: As in the example (now written by me) what I'm trying to achieve
EDIT: rewrote this to be html only In the following code, why is the
EDIT: Problem wasn't related to the question. It was indeed something wrong with my
EDIT: If you can't be bothered to read this mammoth question, I've put a

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.