简体   繁体   中英

C# Winforms Custom control help

I am looking for a free control in C# which allows me to show a set of images in a List like a preview (Eg PDF pages preview). I tried ListView control but it does not allow me to set bigger image size. Please advice

Have you tried using a repeater?

here's a link returned on the first page of a quick google search that demonstrates one way to do this: http://www.vbknowledgebase.com/?Id=157&Desc=Asp.Net-Image-Dropdownlist

You can use a ListView-ImageList combination to achieve that purpose.

Just set the ImageList's ImageSize property to something large, say 96, 96 and set the ListView's LargeImageList property to the ImageList.

There is the ImageListView control. (I am the owner of the project.)

ImageListView控件截​​图

How about a Panel with images in it? You can set it up to render as a scrollable div (if you're targeting ASP.NET, which I think you are), or if this is WinForms, you just set it to have scrollbars.

Understand, though, that unless you have pre-made thumbnails for your images, showing a preview of the image will require loading the whole image and downsizing it to show as a thumb. So, except for the real estate it will take, you may not be saving much by "previewing" images.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM