[DevExpress Support Team: CLONED FROM T136134: How to customize Skin Gallery - Remove / rename skins and groups]
How do I set some groups as "not selected" before first time the "skinDropDownButtonItem1" is shown?
(see attachment)
How to hide certain groups displayed in SkinDropDownButtonItem
Answers approved by DevExpress Support
Hello Martin,
That filter displays visible groups as checked. If you want to uncheck certain items, hide the corresponding groups using the GalleryItemGroup.Visible property. To access groups, use the GalleryControlGallery.Groups property that is obtained as Pavel suggested at How to customize Skin Gallery - Remove / rename skins and groups. Let me know if you have additional questions.
See also:
Galleries
Hi,
Quick note on this ticket: I used the C# code segment above to access the gallery for SkinDropDownButtonItem
to change captions, because I found no Gallery property for the class, but please note that I could find no such thing as SkinPopupControlContainer
. Instead, I found PopupControlContainer
, which worked.
The documentation at the link below is unhelpful for finding a solution to this because it provides no code example for anything except SkinRibbonGalleryBarItem
.
Thanks,
JWPlatt
Hello Jonathan,
I created a small test project to test this approach and it works as expected. However, since SkinPopupControlContainer is a PopupControlContainer descendant, your approach will also work.
As for your idea about adding this approach into this section of our documentation, we will consider updating it. Thank you for your feedback.