Blank screen before loading mainwindow when navigating pages using frame.navigate in wpf application

Roseline_1 1 Reputation point
2020-09-17T05:37:19.46+00:00

Blank screen can be seen when trying to download .xaml page, after few seconds page can be seen, Its requirement that we cant use splash screen while loading page
we are using .net framework 4.7.2 , Is there a way we can analyse why this issue is happening?
attached is part of code

Thanks
Roseline
26531-blankscreen.txt

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,781 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roseline_1 1 Reputation point
    2020-12-11T16:51:49.277+00:00

    After analyzing it was found that in our code Mainwindow.xaml has frame which loads pages by navigation depending upon the input provided, first navigated page has lot of tasks and events to be triggered before it can be completely loaded, as a result its taking time for complete load of Mainwindow.xaml because of which blank screen is coming for that amount of time. To minimize the issue showing Mainwindow.xaml page first having spinner or wait in the frame and showing page in the frame only after it is loaded.

    @DaisyTian-MSFT , creating demo helped us in finding root cause of it .

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.