How do I style a pivot title?

barnyardtech

New member
Jan 3, 2012
1
0
0
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?
 
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="..." />
?
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>
 

Members online

Forum statistics

Threads
334,335
Messages
2,257,310
Members
428,724
Latest member
Liomartaya