开发者

C# Winforms Custom control help

开发者 https://www.devze.com 2023-03-02 22:09 出处:网络
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 b

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


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.


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


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

C# Winforms Custom control help


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号