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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:32:55+00:00 2026-06-12T16:32:55+00:00

I am working on a WPF Browser Application. I want to know how I

  • 0

I am working on a WPF Browser Application. I want to know how I can understand when the loading of a page is finished and the components are shown to start loading the heavy background services. Otherwise I just see a white page for some seconds untill all the services are loaded… Any recommendations to solve this problem?

Here is the thing I have tried:

    public Page1()
    {
        InitializeComponent();
    }

    private void Page_Loaded_1(object sender, RoutedEventArgs e)
    {

        // Just some heavy process in the begining
        int j = 1;
        for (int i = 0; i < 10000000; i++)
        {
            for (int k = 0; k < 1000; k++)
                j=j * 2;
        }
        MessageBox.Show("ready");
    }

However, the page components don’t get loaded in the page untill the processes in page_loaded is finished. Without having the heavy process in the page_loaded, every thing loads very quickly, so there is not any problem in UI.

UPDATE: The thing I understood from loaded event for page or window is that it gets triggered when the page or window gets loaded, and loading of the components and the controlls on the page even the style of it will occure after that… and I don’t seem to find any event that shows the loading of the controlls is completed…

UPDATE2: A better solution for my problem is to use BackgroundWorker or the Dispatcher to run the heavy process on background. As discussed in this post.

  • 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-12T16:32:56+00:00Added an answer on June 12, 2026 at 4:32 pm

    You need to implement threading in your application for this. if you write any code in page load method. Your page will not rendered until the load method is completely executed. so you can use Background Worker and run the processes in background

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

Sidebar

Related Questions

I am working on WPF application and I want to retrieve News Feed using
I am working with WPF application and I want to assign a value of
I am working with WPF. I want to create keyboard shortcuts for my WPF
i am working with wpf media element.i want to change the media element source
I am working on WPF app and I want to get news feed using
I've got style resources in WPF working so that in my App.xaml I can
So i am working on a wpf browser project in c# but on of
I am working on wpf PropertyGrid (PG) control and I want the PG to
So, here is my issue, im working in a Wpf application, so i dont
I have been working in WPF web browsers lately but I can't seem to

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.