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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:42:40+00:00 2026-06-18T14:42:40+00:00

I am navigating from some window window1 to Mainwindow In my MainWindow_loaded Method i

  • 0

I am navigating from some window window1 to Mainwindow

In my MainWindow_loaded Method i have too much computation so when i navigate to main window windows goes white untill all computation finished and window loaded

I tried in MainWindow

 private void MainWindow_Loaded_1(object sender, RoutedEventArgs e)

 BackgroundWorker worker = new BackgroundWorker();

       worker.DoWork += (o, ea) =>
        {
             do large computation
          };

          worker.RunWorkerCompleted += (o, ea) =>
           {

               _busy.IsBusy = false;
          };
         _busy.IsBusy = true;
         worker.RunWorkerAsync();

}

But problem is that it navigates to Mainwindow without computation of necessary data in loaded event handler and doesnt even show waiting bar in UI ? ?
Is it possible to show waiting bar and all computation of data in MainWindow_Loaded?

I have used ExtendedWpfToolkit for _busy which is busy indicator

  • 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-06-18T14:42:42+00:00Added an answer on June 18, 2026 at 2:42 pm

    You can subscribe your background worker to report progress.

    worker.WorkerReportsProgress = true;
    

    And now you can have this progress report be triggered by an event you subscribe to.

    worker.ProgressChanged += new ProgressChangedEventHandler(worker_ProgressChanged);
    

    In doing so, you can create a progress bar than can update itself based on this worker_ProgressChanged event, triggered by your computation.

    It appears you’ve already figured out IsBusy, so you can have your progress bar show only when this is true.

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

Sidebar

Related Questions

Looking for some guidance. In my main window nib file, i have a tab
i have faced some problem while navigating from one class to another with the
I'm navigating from: Main activity to Activity 2 Activity 2 to Activity 3 Activity
I have a UIViewController and I'm navigating from my first view controller to second
I'm Navigating a Class from windows Forms app to windows store app. The Class
I have a FlowDocument in a standard WPF application window where I have some
I need a progressbar in between two jframes;ie while navigating from one jframe to
From the FirstView to the SecondView i will be navigating through pushViewController . In
I'm having trouble navigating to a different controller view from another controller action. e.g.
I have a UIViewController that is popped from the navigation stack on iPhone and

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.