[]
        
(Showing Draft Content)

C1.Win.Accordion.C1AccordionPageSettings.HighlightWholeHeader

HighlightWholeHeader Property

HighlightWholeHeader

Gets or sets a value that determines whether C1AccordionPage header or also expand/collapse icons should be highlighted when moving the mouse over the C1AccordionPage header.

Declaration
public bool HighlightWholeHeader { get; set; }
Remarks

By default the whole page header is highlighted when mouse is over it. Set this property to false to highlight only expand-collapse icons.

It is themeable property, set C1Accordion\Pages\HighlightWholeHeader theme node to determine it in c1theme.

Examples

An overview.

C1Accordion c1Accordion = new C1Accordion();
c1Accordion.Styles.Pages.Header.Hot.BackColor = Color.Yellow;
c1Accordion.Styles.Pages.Header.Hot.ForeColor = Color.Red;
c1Accordion.Styles.Pages.Header.HeaderButton.Hot.BackColor = Color.Blue;
c1Accordion.Styles.Pages.Header.HeaderButton.Hot.ForeColor = Color.White;
c1Accordion.PageSettings.HighlightWholeHeader = true; //default, header and expand-collapse icon will use Styles.Pages.Header.Hot settings
c1Accordion.PageSettings.HighlightWholeHeader = false; //header will use Styles.Pages.Header.Hot, expand-collapse icon will use Styles.Pages.Header.HeaderButton.Hot settings

Set the Hot equal to Default and HighlightWholeHeader to false to emulate that nothing is highlighted in a C1AccordionPage header.

C1Accordion c1Accordion = new C1Accordion();
c1Accordion.Styles.Pages.Header.Hot.BackColor = c1Accordion.Styles.Pages.Header.Default.BackColor;
c1Accordion.Styles.Pages.Header.Hot.ForeColor = c1Accordion.Styles.Pages.Header.Default.ForeColor;
c1Accordion.PageSettings.HighlightWholeHeader = false;

Close buttons are always highlighted with HeaderButton style. Set up HeaderButton and set ShowCloseButton to true to see the difference. Value of the c1Accordion.PageSettings.HighlightWholeHeader will not affect on close button appearance. C1Accordion c1Accordion = new C1Accordion(); c1Accordion.Styles.Pages.Header.HeaderButton.Hot.BackColor = Color.Blue; c1Accordion.Styles.Pages.Header.HeaderButton.Hot.ForeColor = Color.White; c1Accordion.PageSettings.ShowCloseButton = true; //by default close buttons are hidden