Zooming Images

3 posts, 0 answers
  1. Elke
    Elke avatar
    6 posts
    Member since:
    Apr 2013

    Posted 14 Apr 2013 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 17 Apr 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Elke
    Elke avatar
    6 posts
    Member since:
    Apr 2013

    Posted 21 Apr 2013 Link to this post

    Thanks a lot, it works!
Back to Top