I wanted to make the listview show thumbnails only when the items are visible on the screen.
Is there a way to do this?
See an excellent implementation of what your after on CodeProject
You can do this by using a ListView in virtual mode, and then adding your generated thumbnails to the LargeImageList during the RetrieveVirtualItem event (if they are not already there).
If you wanted most of the work done for you, you could use a FastObjectListView from the ObjectListView project (an open source wrapper around .NET WinForms ListView) and then follow this recipe on how to use images loaded from a database. Your images, of course, would be thumbnails created from the source rather than images from a database but the logic is the same.
Related
I'm migrating from using Windows Forms to using WPF and I am struggling to load icons for controls such as menu items and buttons. A lot of the solutions I see online are typing xaml code directly, however I was wondering if anyone could show me how it is intended to be done through the designer using the properties window?
I have loaded the image (i have both .ico and .png and can use either if this matters) into Resources. When I navigate to the control properties I can see an icon field. However I can't type anything directly into the text box and the further options only seem to be Custom Expression, System Resource and Create Data Binding. I have explored each option and it's not obvious how I would do this. I would expect to be able to use Local Resource but it's grayed out.
I have set the icon Build Action in Resources to 'Resource'.
I much prefer using the designer property window to typing the xaml directly, especially as I am just starting out. If someone could show me a way this can be done I'd be very appreciative as I've spent far too long just trying to get a simple image to be displayed beside a menuitem.
Thanks.
I want to show nearly 500 images serially in my e-catalogue application.
It should be like panorama view, the half of the image appear in the first screen when drag the next half will appear. Like that I have to show 500 jpeg images like a ebook application. Which is the best way?
I have tried it in panorama using selection changed event but it can't load quickly. Kindly guide me.
try load the two first image (1.jpeg and 2.jpeg) and with the event, when you are on 2.jpeg (load another image (3.jpeg))
Another alternative is using virtual paging an article with sample project can be found here
http://kent-boogaart.com/blog/virtual-paging-in-silverlight
When the user clicks a button in my C# app I want to show him bunch of images so that he can pick one. I don't want to do it with file browser, I want him to be able to view little thumbnails of the images so that he sees what he is picking.
Is there any control I can use to do this?
Thanks
If you are refering to a WinForms control, I would recommend the free ImageListView control.
Works very well in my own real-world projects. Plus, the author is very responsive and the control seems to have a very high overall code and design quality.
You will need to create custom code. Or you can use a WYSIWYG Editor.
Here are 2 popular ones for .NET.
http://www.tinymce.com/
http://ckeditor.com/
Create multiple PictureBox-es in a grid formation in the form that you are creating.
Display one thumbnail in each PictureBox.
I am usually against PictureBox control usage, but in this case, you can't miss.
I need to build a blotter using csharp and WPF. Basically, like an excel sheet but would have the capability of customizing backgrounds of each cell or setting the value of each cell. But not sure where to start.
If anybody build blotters in csharp or WPF, a few pointers on where to get started would be great. If you can suggest some good open source blotters that I can copy and enhance, that would also be great.
I cannot use standard data grids as they lack many of the capabilities I am looking for.
I know windows forms and applications related to that which have standard controls but to create cells that are editable/customizable like excel, not sure where to start....
Take a look at the Adaptable Blotter (www.adaptableblotter.com).
It includes all the functionality that you seek and works with a number of different WPF grid controls, both vendor and open source. There is a single set of screens giving you advanced search, flashing cells, bulk editing etc but with individual implementations for each underlying grid.
You can use a UniformGrid to create the Grid. You can put Textboxes or even more advanced UserControls into the cells.
best way to show several images on a winform in c#? Datagrid?
Several PictureBoxes :-)
Left a treeview with all the images and mainform the image large? It's kinda hard to guess what you want...
My company, Atalasoft, has several win forms controls that can be used for displaying images and thumbnails.
There is a typical example of using the thumbnail control here.
It depends on how many images you want to display, do you want thumbnails or full-resolution images?
I'm going to assume that since you asked for "images", you have many images to display. As such, you'll probably be wanting to use thumbnails on that form, with a different form if you want to display the full-resolution image.
In this case, you'll want to look at the ImageList object in conjunction with the ListView object.
I used this solution in an app recently. It worked out very well.
You can try using an ImageList and binding it to a ListView. You can set the ListView to Tile View state or any other states.