NExpander header background color


Author
Message
Imanol Yurrebaso
Imanol Yurrebaso
Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)
Group: Forum Members
Posts: 15, Visits: 3
Hello there,

I'm using some NExpander items in my program, and most of the times I have them vertically placed in a window. As I wanted to help the user differentiate between them, I tried to modify the background color of the headers of the NExpanders. But I can't find the proper method to do so. As far as I understand:

- "NExpander.HeaderFont" is only used for the font of the text inside the header.
- "NExpander.HeaderBackground" should be the one, but it is asking for a 'segmented image'

There are still a lot of things that I must learn about C#... am I supposed to override a method or something like that? I would appreciate all the help.

Thanks in advance.
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello Imanol,

To change the background color of the NExpander's header you need to set ControlDark and ControlLight properties of its Palette.
NExpander.Palette.ControlLight color is also used for the background of the expander's back color, so you need to consider this too.

Also, you need to set PaletteInheritance property to None in order to prevent the control to inherit Palette form its parent.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search