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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:10:01+00:00 2026-06-08T04:10:01+00:00

I have a ScrollViewer containing a StackPanel that is filled with over 1000 items

  • 0

I have a ScrollViewer containing a StackPanel that is filled with over 1000 items that each contain a bunch of other items. It performs like a champ at idle or when I actually scroll it. However, when I resize it or anything that causes it to resize (e.g. the containing top-level window), it gets really slow, freezes, and takes about 30 seconds to unfreeze and be resized.

I have discovered that setting VerticalScrollBarVisibility to ScrollBarVisibility.Hidden or ScrollBarVisibility.Disabled before I resize makes it perfectly smooth. However, enabling and disabling ScrollBarVisibility takes around 5 seconds each, which, while better than waiting 30 seconds to resize, is still too long a wait.

What can I do to help gain performance in resizing a StackPanel in a ScrollPanel that contains many items?

  • 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-08T04:10:04+00:00Added an answer on June 8, 2026 at 4:10 am

    You might consider switching to a listbox (I know, sounds weird, but hear me out). The listbox uses a virtualizing stackpanel — it manages how many controls are actually in memory, creating them as you scroll.

    You can use a datatemplate to make each listbox item look like anything that you want.

    (note, this is all assuming that you are displaying some sort of repeating data).

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

Sidebar

Related Questions

I have a scrollviewer that contains a stackpanel of textblock items (actually, these are
I have a StackPanel inside of a ScrollViewer. I have a slider that does
I have a ScrollViewer containing a ListBox . I would like the ScrollViewer to
I have two separate views each containing a ScrollViewer. I want to slave one
I have a ScrollViewer with a StackPanel that contains images. Is it possible to
I have a usercontrol that has a scrollviewer, then a bunch of child controls
I have horizontal scrollviewer in my app. I would like that when I swipe
I have an ScrollViewer that I am trying to do data binding on the
I have created a Rectangle inside of a ScrollViewer like this <ScrollViewer ManipulationMode=Control x:Name=songScrollViewer
I have a Silverlight 4 out-of-browser application with a ScrollViewer that has several RichTextBoxes

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.