Accordion for WinForms | ComponentOne
C1.Win.Accordion Namespace / C1AccordionPageSettings Class / HighlightWholeHeader Property
Example

In This Topic
    HighlightWholeHeader Property
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Property HighlightWholeHeader As Boolean
    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.

    Example
    An overview. Set the C1.Win.Accordion.Styles.AccordionPageHeaderStyle.Hot equal to C1.Win.Accordion.Styles.AccordionPageHeaderStyle.Default and HighlightWholeHeader to false to emulate that nothing is highlighted in a C1AccordionPage header. Close buttons are always highlighted with C1.Win.Accordion.Styles.AccordionPageHeaderStyle.HeaderButton style. Set up C1.Win.Accordion.Styles.AccordionPageHeaderStyle.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
    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
    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;
    See Also