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

  • Home
  • SEARCH
  • 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 6382503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:31:51+00:00 2026-05-25T02:31:51+00:00

I am trying to implement Data Virtualization on a WPF AutoCompleteBox. I found Bea

  • 0

I am trying to implement Data Virtualization on a WPF AutoCompleteBox.
I found Bea Stollnitz’s code here which works great on a ListView and I made it to work on an ComboBox easily, but there’s no way I can seem to get it working right on an AutoCompleteBox.

To be precise, it works – the list is virtualized, items are not all loaded on startup – but what seems to happen is that the AutoCompleteBox iterates through all the items in the list as soon as the ItemsSource changes and this ends up breaking the whole thing (i.e. on load, all the pages in the list are requested, so even though they are virtualized, they will all be requested in the beginning and get loaded). My guess is that this is because of the filtering that the ACBox does, but I’m surprised that there’s not way to prevent it, since the control does normally allow filtering to be done on the server-side using the Populating event.

I feel that I’m missing something, I can’t believe that no one has done something like this before or that it can’t be done, so I’m guessing that I’m just doing something obviously wrong that I can’t figure out since I’m new to WPF.

Here’s some of the things that I’ve done to try and get this together (based on Internet searches around similar problems):

  • I made sure all the conditions for the built-in UI virtualization are ok including explicitly turning it on, setting the max height of the ListBox etc.

  • I replaced the ListBox in the AutoCompleteBox with a ListView like the one that Bea uses in her example. Side by side, the ListView by itself works as expected, but the one embedded in the ACBox does not.

  • I tried using no filtering in the ACBox, using a custom filter, handling the populating evenet manually etc. This doesn’t help. Making a custom filter is obviously not enough since the custom filter only allows you to specify the result of evaluating one item, the code that loops through the list is not visible so you can’t prevent looping. Turning the filter to "None" doesn’t do anything either.

Any and all suggestions are welcome!

The target for this is .NET 3.5 and I am using the WPF Toolkit (Feb 2010 release)

Thank you!

  • 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-25T02:31:51+00:00Added an answer on May 25, 2026 at 2:31 am

    I tracked this down to OnItemsSourceChanged() (see source). In there, the AutocompleteBox stores a “local cached copy of the data”, which is why I see the behavior noted above.
    This is a private method, so no overriding here.

    It seems to me that because of this you can’t apply DataVirtualization to the AutoCompleteBox, at least not using the ideas in Bea’s solution. If anyone has any different thoughts regarding this, I would love to try it out, but until then, this is what I believe the answer to be.

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

Sidebar

Related Questions

Hey, I'm trying to implement a ListView on Android, which will print the data
I am trying to implement a ListView data control for displaying and editing lookup
I'm trying to implement some code to import user's data from another service via
I'm trying to implement a chart that can handle real time data, which comes
I am trying implement the Data transformation using Reflection 1 example in my code.
I am trying to implement the linked list data structure using java, it works
I'm trying to implement a data compression idea I've had, and since I'm imagining
I am trying to implement a data push from a Windows Service to a
I am trying to implement a decorator chain for my data-access based on IRepository.
I've been trying to work out how to implement Church-encoded data types in Scala.

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.