Ticket Q574728
Visible to All Users

How to remove certain skins from the bonus skins collection

created 11 years ago

Hi,
I am using DevExpress Bonus skins to change the skin of my app,i dont want all the themes listed in the group,is any way to restrict skins provided or is any way to change the name of provided skins.
Thanks.

Comments (2)
Alisher (DevExpress Support) 11 years ago

    Hi Rajeev,
    Would you please clarify what group you're talking about? Please record a video or make a screenshot of the issue you've faced. I hope to hear from you soon.

      Attaching the screenshot of bonus skins provided,there are 3 groups in the listings,standard skins,bonus skins and theme skins,i want to restrict some of the skins from the list,and also i want to change the name of the skin while displaying it.any help is appreciated.
      Thanks.

      Answers approved by DevExpress Support

      created 11 years ago (modified 11 years ago)

      Hello,
      To accomplish this task you can remove necessary items from RibbonGalleryBarItem.Gallery based on your own logic. To rename objects you can use an approach from the How to use a Skin Helper to populate a RibbonGalleryBarItem and PopupMenu with items corresponding to the DevExpress skins example. I hope this will be helpful for you. Should you have any further questions, feel free to contact me at any time.

        Comments (2)

          can you please be more specific,how to remove/skip specific themes from the list,can u provide a sample solution to do this.
          Thanks.

          Alisher (DevExpress Support) 11 years ago

            Hi,
            You can use the following code to hide items in GalleryBarItem:

            C#
            string[] skinsToHide = {"Black","Blue","Seven","Sharp" }; private void button1_Click(object sender, EventArgs e) { for (int i = 0; i < ribbonGalleryBarItem1.Gallery.Groups.Count; i++) { GalleryItemGroup group = ribbonGalleryBarItem1.Gallery.Groups[i]; for (int j = 0; j < group.Items.Count; j++) { GalleryItem item = group.Items[j]; foreach (var skin in skinsToHide) { if (item.Caption == skin) { item.Visible = false; } } } } }

            Please try it and let me know if you have additional questions.

            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.