Two questions about making the PopupGalleryTool look nice.
1. In the screenshot you see a PopupGalleryTool with a gray line at the bottom, marked in pink. It may be a left-over of the ResizeDropDown. How can I get rid of the gray line and the space it occupies?
2.There is empty white space to the right of the items, marked in red. How can I get rid of that space?
I've been searching for answers to these question without success. Even if the answers were in the forum, I have a hard time coming up with the proper search terms. What is the strategy for finding answers to such questions?
TIA!Hans
Here's the sample project.
Hello Salvis,
Have you tried adding ButtonTools instead of items to your gallery tool?
Both the PopupMenuTool and PopupGalleryTool can contain several child tools to get the behavior your looking for. Adding "items" within a PopupGalleryTool is bit more robust and meant to used along side with the Ribbon, ex you can add charts and other controls as shown in our documentation here: http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=WinToolbarsManager_Adding_Groups_and_Items_to_the_PopupGalleryTool.html
I believe the best and most direct way to achieve your requirement would be to simply add button tools to your PopupGalleryTool. But it would be better to begin with using the PopupMenuTool if you only want to add items as a list that are clickable like ButtonTools and see if it has everything you need.
I attached your sample which I modified to show you how to add the desired behavior, in code, with button tools added to your PopupGalleryTool.
Let me know if you have any questions regarding this matter.