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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:07:38+00:00 2026-06-13T19:07:38+00:00

I am facing a big issue : In my WPF app, the MainWindow contains

  • 0

I am facing a big issue : In my WPF app, the MainWindow contains a Border with a Loading Animation (storyboard). By default it’s collapsed. I sometimes make it visible and collapsed when I load a lot of data or when I’m loading a new XAML screen.

First of all, I wasn’t using Threading at all and the animation where both freezing and appearing with lates.

Then I began to use Threading like this :

Messenger.StartAnimation();
var task = Task.Factory.StartNew(() =>
                {
                    Thread.Sleep(150);
                }).ContinueWith((a) =>
                {
                    // HERE Screen moving + large amount of data loaded with Entity Framework
                    Thread.Sleep(200);

                    Messenger.StopAnimation();
                }, CancellationToken.None, TaskContinuationOptions.NotOnFaulted, threadUIContext);

This time, the animation worked during 1 second and then it just freezed until all data and new displayed screen where loaded. A It’s like the main thread blocks ALL threads.

I’ve tried to add Timer to Delay my Messenger.StopAnimation() to 3 seconds later. Even this will freeze my animation for 1 second when everything is being changed and loaded on my new screen and then my animation continues for 3 seconds.

I’ve tried Dispatcher, BackgroundWorker and met same problem that with previous code.

I’ve tried to put my animation on a popup and even on a new Window which was Transparent. Nothing to do, it always end up freezing for 1 second before stopping…

For info, I use ObservableCollection (I’ve tried with List, same problem) and I load different screens inside a ContentControl in my MainWindow.

I’ve watched the techdays video, Fast and Furious and I really wanted to get a smooth animation like on the video, but the freeze seems impossible to remove.

  • 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-13T19:07:39+00:00Added an answer on June 13, 2026 at 7:07 pm

    I had the same issues when loading 50+ small images in a simple collection view. I found out eventually, that the .NET Framework drawing the bitmaps to the screen is what ties up the main thread, and that I had absolutely no way of circumventing that. I tried putting all the elements in the view but slowly filling the collection which was bound to the view, but every time the observable collection got changed, the .NET Framework redrew all the images in the view, so this didn’t help too.

    I asked a Microsoft engineer about this, and he bluntly admitted that it’s a problem in the .NET Framework that will have to be fixed by Microsoft in the future. A colleague of mine said you could circumvent the issue by drawing all pixels yourself with your own algorithms.

    I imagine if you want to fix this you’ll have to change the way your data gets displayed, although I canot help you with the solution.

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

Sidebar

Related Questions

I'm facing a big problem. My app is loading XML files (within AsyknTask) from
issue facing while loading the messages in to mq channel, recieving an error like
I am facing a big issue with PDFBOX: I tried to load a file
I am facing a big issue with cookie. My domain is abc.com At the
I m facing big problem With Application Termination State.In My app need to Satisfied
I'm facing a big issue IMO. First, here's my code: .bind('uploadSuccess', function(event, file, serverData){
I am doing me university project and facing a big issue. i am developing
I have a big ol' .po file containing all the user-facing strings I need
Facing some issue in Talend Admin Console, the jobs that are running from IDE
I am facing a big problem in calling non static method from static method.

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.