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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:42:15+00:00 2026-05-16T14:42:15+00:00

I have a ListBox containing a large number of Image controls. The Source of

  • 0

I have a ListBox containing a large number of Image controls. The Source of each Image is set to a URI on a remote server. About 20 images are visible at a time (the panel is a VirtualizingStackPanel), and each time the ListBox is scrolled it takes a few seconds to render the images, resulting in extremely sluggish scrolling. The images are small (5-7K each) and no resizing is involved.

When the Source is a local URI, performance is fine.
The images are being served by a nginx server, and render almost instantly in a browser.

My question is:

  1. Is there a better way to display these images in WPF?
  2. If this is the best way, how should I begin tracking down the bottleneck?

EDIT:

The ListBox is populated by binding to a collection. This is the XAML of the DataTemplate set as the ListBox’s ItemTemplate:

<ListBoxItem>
    <StackPanel>
        <TextBlock Text="{Binding Path=Title}" />
        <Image Width="50" Margin="0">
            <Image.Source>
                <BitmapImage UriSource="{Binding Path=ImageUri}" DecodePixelWidth="50" />
            </Image.Source>
        </Image>                            
    </StackPanel>
</ListBoxItem>
  • 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-16T14:42:16+00:00Added an answer on May 16, 2026 at 2:42 pm

    Try binding the images from ObservableCollection which will return the ImageSource collection to a Image inside a ItemTemplate.

    HTH

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

Sidebar

Related Questions

I have a ListBox containing a set of images in a C# WPF application.
I have a ListBox containing a large number of items, which are all account
I'm using panorama UI in wp7. I have several panorama screen each containing ListBox.
My problem is rather simple. I have a ListBox, containing Thumnails (Image) <ListBox Name=ListBox_Thumbnails
I have a ListBox containing a group of 'Expander' items, and what I would
I have a listbox containing Users. The datasource is an generic list of the
The Scenario I have a windows forms application containing a MAINFORM with a listbox
I have a ScrollViewer containing a ListBox . I would like the ScrollViewer to
I have a Windows Forms application (C#) containing a ListBox into which I have
I have a listbox containing all the items and a second listbox that will

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.