This is a migrated thread and some comments may be shown as answers.
Zooming Images
2 Answers 46 Views
This is a migrated thread and some comments may be shown as answers.
Elke
Top achievements
Rank 1
Elke asked on 14 Apr 2013, 10:02 AM
I want to show thumbnail images in a ListView in IconView. I got the thumbnail images in a fixed size and I want to show them smaller. I set the image property of the listviewdataitem to the thumbnail and the Itemsize property of the listview to a size smaller than the thumbnails. Now I only see a part of the thumbnail in the listviewdataitems. Can I zoom the images to see the whole image in the listviewdataitem?
Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 17 Apr 2013, 03:40 PM
Hi Elke,

Thank you for writing.

To do that, you should use the VisualItemFormatting event and set the ImageLayout to Zoom:
void radListView1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    e.VisualItem.ImageLayout = ImageLayout.Zoom;
}

I hope this helps.
 

All the best,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Elke
Top achievements
Rank 1
answered on 21 Apr 2013, 09:56 AM
Thanks a lot, it works!
Asked by
Elke
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Elke
Top achievements
Rank 1
Share this question
or