Current filter:
                                You should refresh the page.
                                  • How do you size the images in the BarSubItem?  I'm populating it in a loop but the images are huge.  And I can't find a property that sets the size.

                                    [C#]
                                    foreach (DataRow row in dt.Rows) { Image image = Image.FromFile(row[@"IconPath"].ToString()); string caption = row["Lang"].ToString(); BarButtonItem item = new BarButtonItem(ribMain.Manager, caption); item.Name = caption; item.ImageOptions.Image = image; ribsubLangDefault.AddItem(item); }

                                1 Solution

                                Creation Date Importance Sort by

                                Hello,

                                Do I understand it correctly that your BarSubItem is located in RibbonControl? If so, you can use the BarSubItem.RibbonStyle property to adjust its size.
                                Please test this approach and let me know your results.

                                • Customer58415 01.15.2020

                                  Here’s a video of the issue.

                                  Sean McCown, SQL Server Certified Master
                                  Chief Architect, MinionWare LLC

                                • Nadezhda (DevExpress Support) 01.16.2020

                                  Thank you for the video.
                                  To adjust the image size that you set for BarButtonItem, I suggest you use ImageCollection. For this, set a required size to the ImageSize property. After that, load required images to the ImageCollection.Images collection. Then, you can assign these images from the collection to your BarButtonItems.
                                  Do not hesitate to contact us if you need further assistance.

                                • Customer58415 01.17.2020

                                  The images come from a database and they have text that needs to be displayed with them.  So ImageCollection won’t do.

                                  Sean McCown, SQL Server Certified Master
                                  Chief Architect, MinionWare LLC

                                • Nadezhda (DevExpress Support) 01.20.2020

                                  In this case, I suggest you manually resize your images before you set them to BarItems.

                                  Let me know if it works for you.