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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:17:56+00:00 2026-05-25T12:17:56+00:00

I have problems with my current application which is developed in C# with WPF.

  • 0

I have problems with my current application which is developed in C# with WPF. The application consists of different flowcharts each contained in its own separate window.

At start-up all flowchart classes are instantiated and initialized in their window. Then the windows are made invisible and the flowchart menu appears.

With each new flowchart the application start up gets slower. The window initialization seems to consume a lot of time.

How could I approach this problem?

I thought of initialization when first needed or background initialization.

Note: I forgot a very important fact: The flowchart menu is created based on the other flowcharts, since every single flowchart is rendered as an image in order to display a thumbnail menu button. This is the problem which brough me to the performance impact anyway.

  • 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-25T12:17:57+00:00Added an answer on May 25, 2026 at 12:17 pm

    You have many approaches to this problem.
    First, you have to remove the initialization from the c’tor.

    Where to move it?
    Either to Window_onLoad event, this way the app will first loaded and then start initializing the flow charts (using a new thread will avoid UI freeze).

    Or once the user selects the required flow chart from the menu, you show the window and start initializing the inner flow chart, display a nice “loading..” animation while busy, and show the flow chart once you done.

    I’d prefer the second approach, init each object when it’s needed.

    Edit:
    Since you have to render the thumbs based on the flowcharts, i would do the following:
    Move the flowcharts init to the main window Loaded event, and init each flowchart on a different thread, while busy display a nice “please wait..” animation. This way the main app window appears, the user see that the app is loading, your thumbs will be created simultaneously therefore loading time will be reduced. Once all the thumbs created, hide the animation.

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

Sidebar

Related Questions

We have developed an application in C# .NET WPF Office which we are about
I have developed a simple location aware iPhone application which is functionally working very
I have developed an application in which i have implemented ontouchlistener with which i
Hi I have an application which after login, loads a main activity which contains
We have a problem with our current TFS installation. For some reason, which I
we have developed an Intranet Management Application with Silverlight 4. We have been asked
My current problem is that I have a JFrame with a 2x2 GridLayout. And
Problem, there's no method: bool ChangePassword(string newPassword); You have to know the current password
I have problems with bringing a windows mobile 6 form to the front. I
I frequently have problems dealing with DataRows returned from SqlDataAdapters . When I try

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.