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 419499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:47:01+00:00 2026-05-12T18:47:01+00:00

What solutions do I have if I want to prevent the UI from freezing

  • 0

What solutions do I have if I want to prevent the UI from freezing while I deserialize a large number of UI elements in WPF? I’m getting errors complainig that the objects belong on the UI Thread when I’m trying to load them in another thread. So, what options do I have to prevent the Vista “Program not responding” error while I’m loading my UI data? Can I rely on a single-threaded solution, or am I missing something regarding perhaps multiple UI Threads?

  • 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-12T18:47:01+00:00Added an answer on May 12, 2026 at 6:47 pm

    If you only use a single thread then the UI will freeze while you do any amount of processing.

    If you use a BackgroundWorker thread you’ll have more control over what happens & when.

    To update the UI you need to use Dispatcher.Invoke from your background thread to marshal the call across the thread boundary.

    Dispatcher.Invoke(DispatcherPriority.Background,
                      new Action(() => this.TextBlock.Text = "Processing");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: how to prevent multiple form submit from client side? We have a
I want to prevent users from shut down or restart the system. my application
I have a bunch of forms that have various input elements. I want to
We want to prevent the user from doing anything except selecting a folder. We
I have methods returning private collections to the caller and I want to prevent
I have a table with a column that I want to prevent certain users
Let's say I've got a control and I want to prevent it from being
In a solution I have three projects,you can see on picture.Want to access project-1
I have a solution I'm trying to get to build on TFS. I want
We are currently implementing a solution where we have a collection which we want

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.