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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:58:15+00:00 2026-06-18T09:58:15+00:00

I have an application where I have to bind a Data Grid witch is

  • 0

I have an application where I have to bind a Data Grid witch is on an User control in a Tab Item.

This process take a while so I create another Tab Item with a Loading animation in a separate thread and when I load data in data grid I select the tab item with the animation until the data is loaded.

The problem is that the animation is starting, but when the data grid binding starts, the animation is freezing.

this.Dispatcher.Invoke(DispatcherPriority.Normal,
            new Action(
                delegate()
                {
                    tiLoading.Content = new Controls.Loading.LoadingAnimation();
                    tiLoading.IsSelected = true;
                }
        ));

//And now I populate the content of the Tab Item with the User Control that contains data grid

connType = choseConnType(); // Here is a dialog witch ask the user somethig and return a value
tiGeneral.Content = new Windows.General(true, connType);

After the dialog when starts the binding the LoadingAnimation is freezing.

  • 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-18T09:58:16+00:00Added an answer on June 18, 2026 at 9:58 am

    It’s understandable. If you have long-running process you should be using BackgroundWorker to run it.

    public void ItsGonnaBeLong()
    {
        this.IsBusy = true;
        var worker = new BackgroundWorker();
        worker.DoWork += this.MyDoWorkMethod;
        worker.RunWorkerCompleted += this.MyDoWorkCompleted;
        worker.RunWorkerAsync();
    }
    
    private void MyDoWorkCompleted(object sender, RunWorkerCompletedEventArgs e)
    {
       // executed after work on background thread is completed
       this.IsBusy = false;
    }
    
    private void MyDoWorkMethod(object sender, DoWorkEventArgs e)
    {
       // Do something.
    }
    

    And is it pretty to have your animation on different TabItem? Have you considered using BusyIndicator from Extended WPF Toolkit? You can simply wrap your Control with BusyIndicator and use Its IsBusy property to run it.

    <xctk:BusyIndicator IsBusy="True" >
            <my:MyUserControl />
    </xctk:BusyIndicator>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have application with needs to have access to some sensitive data(in this case
In my application I have a sqlite database that looks like this: CREATE TABLE
I have a data grid in my WPF application window, which I have to
I have a simple application with just a window and a user control. The
I have a wpf application using Caliburn.Micro. I need to bind a ListBox to
I have TreeView control and I want to bind tree nodes' IsExpanded property to
In my application I have a table containing data for various regions within an
Im attempting to bind a button in a user control to a command defined
I am trying to create a menu bar for my application. I have created
I have an application which is used for data analysis and I'm having a

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.