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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:47:35+00:00 2026-06-08T15:47:35+00:00

I’ve got a pivot view, with 6 pivotitems. Each pivotitem contains a list of

  • 0

I’ve got a pivot view, with 6 pivotitems. Each pivotitem contains a list of movies. Each movie has a coverimage, and next to it a title and some other metadata. To style this as I wanted had to use a few grids/stackpanels obviously. Also, i have a contextmenu for each item. Above my listbox I have a performance progress bar to show while the data is loaded (I get everything from a web API). My problem is that one of the lists contains a lot more movies than the others, about 100. When loading this list the app uses around 150-160 mb memory, which exceeds the limit of 90 mb. It looks like all the images and content is loaded right away (which I think causes this problem).

What I would want is this:

Load the title and metadata first, then load the images only where the user is currently at in the list, so that the images longer down the list arent loaded before the user scrolls down to it.

I’ve tried using deferredloadlist, lazylist and normal listbox, and ive tried setting virtualization to standard and recycling, without results. I must admit im not sure what all those things really do though. Does anyone know how I can fix this? Thanks in advance.

PS. the xaml-code for the listbox is somewhat clunky, so i decided not to include it in this post. Let me know if you really need to look at it to help though.

Update: I’ve been able to reduce the memory-usage by using virtualizing listboxes, but its still around 100 mb. I read somewhere that setting bitmapImage.ImageSource =null; when finished using an image will clear it from the memory. How can I do this for each image when they’re in a listbox?

  • 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-08T15:47:40+00:00Added an answer on June 8, 2026 at 3:47 pm

    The ListBox itself doesn’t use much memory. It’s the ListBoxItems’ contents which do. A virtualizing panel only creates the ListBoxItems which are visible (plus a few more) and destroys off-screen ListBoxItems. So make sure your ListBox uses a virtualizing Panel, e.g. by NOT setting ListBox.ItemsPanel.

    For virtualization the Panel needs to have a constrained size – otherwise it would create ALL ListBoxItems. In general this is done by giving the ListBox a constrained size by putting it into a Grid or by setting Width/Height. But if you instead place the ListBox inside a non-constraining container (e.g. ScrollViewer, StackPanel, …), then the ListBox’ size is unlimited, the ItemsPanel will grow as much as it wants and all ListBoxItems are created – even if they’re far off-screen.

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

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.