I have a an app where the user must select from thousands of images. I am using a filtered UltraListView and it works so far, but it would be even better if I could present the images in a very dense list, with three to six images per row.
Is there any way to get an UltraListView to display multiple items per row in a gallery style view? Perhapes using thumbnail or tile view style?
Hello,
I will be happy to assist you with your question.
When setting the View property to tile, the best way to show thousands of images efficiently would be to set the itemSize property so that you can show more images within the available space on the form. To learn more abou this property, please visit our online help documents found by clicking here. Also, I have attached a sample to demonstrates my recommendation.
private void Form1_Load(object sender, EventArgs e) { this.ultraListView1.View = Infragistics.Win.UltraWinListView.UltraListViewStyle.Tiles; this.ultraListView1.ViewSettingsTiles.ImageList = this.imageList1; //Setting the itemSize will allow you to show more items this.ultraListView1.ViewSettingsTiles.ItemSize = new Size(40, 40); for (int i = 0; i < 21; i++) { this.ultraListView1.Items[i].Appearance.Image = 0; } }
Please let me know if you have any questions regarding this matter.
Hi Jose,
Yes I am already setting image size so the icons are all fairly small.
But I still would like to present the user with a gallary view they can drag from. Basically multiple images per row with no text.
Can it be done in UltraListView?
Hi,
The ultraListView doesn't have a gallery view style and is considered a product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12060109.
In attempt to provide you with similar functionality, I have attached a sample that uses the ultraListView in Thumbnail view and ultraPictureBox. When the user clicks on an item in the ultraListView, the image displayed in the ultraPictureBox changes. To my understanding, this is the behavior you mean when you say GalleryView. I have created a case for you to provide you with the sample I created. To access the case, simply log into your Infragistics account and click on My Support Activity.
Thank you for your request and please let me know if you have any questions about my sample.
So it if you use the Icons view you can get a list that acts a lot like a picture gallary, several images per row depending on the width of your list control.
In this example I chose to hide the text by setting ItemSize the same as the image size.
ultraListView1.View = UltraListViewStyle.Icons; ultraListView1.ViewSettingsIcons.ImageSize = new System.Drawing.Size(_previewImageWidth, _previewImageHeight); ultraListView1.ViewSettingsIcons.ItemSize = new System.Drawing.Size(_previewImageWidth, _previewImageHeight); ultraListView1.ViewSettingsIcons.TextAreaAlignment = TextAreaAlignment.Bottom; ultraListView1.ViewSettingsIcons.Alignment = ItemAlignment.LeftToRight; ultraListView1.ViewSettingsIcons.Spacing = new System.Drawing.Size(1, 1);
Yes I did. Please let me know if you have additional questions with my solution.