Ticket T664633
Visible to All Users

How to hide certain groups displayed in SkinDropDownButtonItem

created 7 years ago

[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)

Answers approved by DevExpress Support

created 7 years ago (modified 16 days ago)

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

    Show previous comments (7)
    DevExpress Support Team 5 years ago

      You are welcome, Bodong.

      JP JP
      Jonathan Platt 5 years ago

        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.

        https://docs.devexpress.com/WindowsForms/117178/build-an-application/application-skins/add-and-customize-the-ribbon-gallery-skin-selector

        Thanks,
        JWPlatt

        DevExpress Support Team 5 years ago

          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.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.