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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:54:37+00:00 2026-06-13T09:54:37+00:00

Hi I am designing an application using WPF, EF and MVVM (.NET4.0). I face

  • 0

Hi I am designing an application using WPF, EF and MVVM (.NET4.0).

I face issue with freezing UI when I’m binding data. I think this is because of lazy loading.

MVVM:

        ThreadPool.QueueUserWorkItem(state =>
        {
                IsProgressBarVisible(true);

                var service = Context.SomeModel.ToList();
                BgServiceCompleted(service);
        });

XAML:

"{Binding OrderItemViews.SOmeModel_A.SomeModel_B.SOmeField}"
"{Binding OrderItemViews.Country.Name}"

Some Model:

public class SomeModel_A
{
    public int Id { get; set; }
    ....        
    public int SomeB_Id { get; set; }
    public virtual SomeModel_B SomeModel_B { get; set; }
}

I found a solution for this problem.

1) setting the IsAsync-Property in the ItemsSource-Binding.

"{Binding OrderItemViews.SOmeModel_A.SomeModel_B.SOmeField, IsAsync=true}"

The interface does not freeze, but the value appears after a while time. This will confuse some users.

2) using Include for loading include data.
For instance:

Context.SomeModel.Include(a => a.SomeModel2).Load();

but in my case Context doesn’t have Include. Why?

Which the best way to solve this problem?

Could you please give me a guidance on how should I do that or any useful resource I can read and learn about it?
Thanks

  • 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-13T09:54:38+00:00Added an answer on June 13, 2026 at 9:54 am

    Include is not part of the standard libraries, you have to add using System.Data.Entity;. Failing that, what is the type returned by Context.SomeModel?

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

Sidebar

Related Questions

I'm using Caliburn and the MVVM pattern in a WPF application, and am trying
Hello and thanks for looking! Background I am designing a greenfield application using .NET4
I am designing a very simple C# WPF application, following the MVVM pattern, with
I'm working on designing a larger-ish web application using Haskell. This is purely for
Following this tutorial i'm developing a web application using symfony authentication/authorization architecture. After designing
I am designing a web application using the ASP.net MVC framework. I would like
I am designing a web application using GWT currently, which is also the first
I'm currently designing a web application using php, javascript, and MySQL. I'm considering two
I'm doing a schedule sms application in android using eclipse. The designing part is
I'm designing my application data model and I have a doubt, whether to use

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.