Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
How do I apply styling to just one UltraExplorerBarGroup item?
posted

 [using Infragistics v7.2]

how do I apply styling to just 1 UltraExplorerBarGroup item in an UltraExplorerBar ? 

In the explorer bar, I have a number of explorerbar group items. I would like to change the heading colour on one of the items. 

I've created a style library and have created an extra style set for the different style  I want applied to the item.

 In code, I have the following line:

investigationGroup.ItemSettings.AppearancesLarge.Appearance.StyleLibraryName = "InvestigationStyle";

When the application runs though, all ExplroerBarGroup items are changed to the new colour. 

Parents
No Data
Reply
  • 5118
    posted

    Hi,

    Set the StyleLibraryName directly on that item:

    investigationGroup.Items["MySpecialItem"].Settings.AppearancesLarge.Appearance.StyleLibraryName = "InvestigationStyle";

    where "MySpecialItem" is the Key of the item you want to set the StyleLibraryName of explicitly. 

    Setting a Group's ItemSettings property will apply to all the items in the Group. 

    Setting a property directly on the item will override any setting from it's group or the control itself.

Children
No Data