1. barnyardtech's Avatar
    I want to change the background color and font color for the Pivot title. This is the text that stays in the same place at the top of the pivot control when swiping between pivot items. I have figured out how to change the color/size of the font. But how can I change the background color for the full width behind the title?
    01-04-2012 10:52 PM
  2. ne0cr0n's Avatar
    I want to change the background color and font color for the Pivot title. This is the text that stays in the same place at the top of the pivot control when swiping between pivot items. I have figured out how to change the color/size of the font. But how can I change the background color for the full width behind the title?
    Do you mean the text on top of the app? [CODE]<controls:Pivot Title="..." /> [/CODE]?
    If you want to create a full customized Title attribute you can redefine the title like this:
    [CODE]
    <controls:Pivot>
    <controls:Pivot.Title>
    <Grid Background="insert your color">
    <TextBlock Foreground="insert your color" Text="blabla"/>
    </Grid>
    <!--Maybe you have to play around with the Margin value of the Grid and the TextBlock to get a nice looking result-->
    <!--You can add other stuff here as well: stackpanels, rectangles, images, progressbars, ...-->
    </controls:Pivot.Title>
    </controls:Pivot>
    [/CODE]
    01-05-2012 06:24 AM

Tags for this Thread

LINK TO POST COPIED TO CLIPBOARD