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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:38:16+00:00 2026-05-14T03:38:16+00:00

So I have binded a List to a ListView where the List has items

  • 0

So I have binded a List to a ListView where the List has items of type Album, where it has lots of properties including .Cover, which I is an image on disk. Well since I don’t know what type of image is needed and how they have to be loaded (I only know using Image types for Winforms), I don’t know the type yet.

Can someone show or post me a quick sample where it shows this sort of items being shown as images of a certain fixed size using their .Cover property?

In essence this would show:

  1. What type .Cover should be
  2. How to open images from disk for WPF (assuming it’s different than Winforms image loading)
  3. How to show them on a ListView as images of a certain fixed size, scaling the images if necessary
  • 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-14T03:38:16+00:00Added an answer on May 14, 2026 at 3:38 am
    1. ImageSource
    2. ImageSource myImageSource = new BitmapImage(new Uri(@”file://C:… something.jpg”));
    3. Specify a data template for the items in the ListView’s ItemTemplate property:

      <Window.Resources>
          <DataTemplate x:Key="ItemTemplate">
              <StackPanel Orientation="Horizontal">
                  <Image Width="10" Height="10" Stretch="Fill" Source="{Binding Cover}"/>
              <Label Content="{Binding Title}" />
              </StackPanel>
          </DataTemplate>
      </Window.Resources>
      
      <Grid x:Name="grid">
          <ListView ItemTemplate="{StaticResource ItemTemplate}" ItemsSource="{Binding Albums}" />
      </Grid>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ComboBox which is binded with a List. Consider I have 10
I have a listview that is binded to a ThreadSafeObservableCollection. The background of each
I have a collection that is binded to my Listview. I have provided options
I have binded a list of enum to a combobox. Now I want to
I have list of checkboxes in list binded by Custom simpleCursorAdapter . In my
Ok, I have an ItemsControl binded to a List<IComparableObject> , each second the List
i have three listboxes, whose itemsSource is binded to a list, list and dictionary.
I have binded a list with Editable WPF DataGrid I want to get only
I have a WPF Datagrid binded with list of interface objects. Consider, ClsEmployee class
The problem I have a list of tasks with which a user is greeted

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.