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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:04:20+00:00 2026-06-11T17:04:20+00:00

I have a WPF application with one window. This window has one image and

  • 0

I have a WPF application with one window. This window has one image and one textblock. The application takes in a command line argument that is the name of an ISO to mount. It then changes screen res if needed, loads the application on the virtual cd and waits for that process to terminate. After it has the ISO is unmounted and the screen res put back to the original state. While all this is going on a message is displayed to the user to tell them where in the process they are.

I am using the textblock to display the progress text to the user and the whole process kicks off on the following event.

private void Window_ContentRendered(object sender, EventArgs e)
{

    txtMessage.Text = ConfigurationManager.AppSettings.Get("MountISO");
    //Call routine to mount ISO

    txtMessage.Text = ConfigurationManager.AppSettings.Get("SettingResolution");
    // call routine to set resolution

    .
    .
    .
    .etc

}

However the window loads as expected but no text displays in the textblock.

I did have the code in the Window_Loaded event but the window remained minimised until the processing had finished.

I’m obviously going about this the wrong way but cannot find anything to tell me where I am going wrong.

  • 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-11T17:04:21+00:00Added an answer on June 11, 2026 at 5:04 pm

    Asynchronous programming may be what you want to do here. Search StackOverflow for things like Task in C# or read the Microsoft documentation on the Task class.

    The ContentRendered event is not the place to put things like that. Usually it would be Window_Loaded as you did in the first place, but of course the application is blocked by the long lasting actions you’re performing.

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

Sidebar

Related Questions

I have WPF application with one main window . In this window there are
I have a WPF Windows application. In one window there is a particular stackpanel
This relates to Composite Application Guidance for WPF, or Prism. I have one MainRegion
I have a WPF application which has a main window composed from several custom
My WPF application has more than one window, I want to attach some of
I have a simple WPF window that has 12 buttons on it. I want
I have .NET WPF application and one of requirement is that user may select
I have WPF Application where I have One main form and other user controls
We have a .NET 4, WPF, WCF, EF 4, SQL 2008 application. One of
I have WPF C# application that communicate with a PLC (i.e. write/read Omron PLC's

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.