locked
Accordion- set header background color RRS feed

  • Question

  • I thought this would be easy (it probably is), but i cant seem to set the header color for the accordion

    ....<toolkit:AccordionItem>
                                    <toolkit:AccordionItem.Header >
                                        <Grid >
                                                 <TextBlock Text="Third Item" Foreground="White"/>
                                        </Grid>
                                </toolkit:AccordionItem.Header>

    ......

    I tried adding Background="Red" in the .Header and also in the grid, neither worked

    any ideas?



    Tuesday, August 17, 2010 1:26 PM

Answers

  • Hi,

       You can change the background color of AccordionItem directly , as I checked that the expandable button's background is bind to that value.

       This will change your content background to that value you set as well.

       you can put some panel as your content and set another background.

    Best Regards 

    Thursday, August 19, 2010 3:47 AM

All replies

  • Hi,

       You can change the background color of AccordionItem directly , as I checked that the expandable button's background is bind to that value.

       This will change your content background to that value you set as well.

       you can put some panel as your content and set another background.

    Best Regards 

    Thursday, August 19, 2010 3:47 AM
  • I think he is asking about the header
    Thursday, March 14, 2013 2:10 PM