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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:13:57+00:00 2026-05-23T21:13:57+00:00

In a WPF application the main window has a content control to which one

  • 0

In a WPF application the main window has a content control to which one of user controls can be loaded. Each of these user controls has about a thousand small, simple custom controls. That’s why the rendering time for swithing over to another user control is uncomfortable.

My question is, what would be the correct way of somehow preloading views into the UI so as swithing over to another view be fast? Can it be done in a way, not visible for a user? Or rendering a XAML should always be done in a visible, focused part of a window, so making it impossible to preload something that could be needed in the future?

Please, note, that I don’t mean preloading data from a database.

  • 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-23T21:13:58+00:00Added an answer on May 23, 2026 at 9:13 pm

    I haven’t had need to do this so far, but:

    You can try loading the content you want into a control which does not get displayed due to layout decisions. This should force the content to be created even though it will not be displayed immediately.

    When you want to “bring the content in”, remove it from the visual tree from its current position (the exact method might depend on what its parent is exactly) and re-insert it as a child of another, visible, control.

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

Sidebar

Related Questions

My WPF application consists of a main window with a tab control which has
I have WPF Application where I have One main form and other user controls
I have a WPF application which has a main window composed from several custom
In my WPF application, I have a main window (Branch.xaml) which has a button
I'm working on a WPF application that has no main window (it runs in
I have WPF application with one main window . In this window there are
Greetings I have a Main Window which will hold multiple User Controls. I will
I have a WPF application with Main Window which is not a tool window
The application that I'm working on, has a main customized WPF window. There is
I've implemented a simple WPF splash screen window which informs the user about the

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.