I am currently working with Windows 10 and Pivot control. I am aware that we can customize the header template by adding an Image or customizing the TextBlock. I know how to customize basic template like following
<Pivot.HeaderTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding}"
FontSize="22"/>
</Grid>
</DataTemplate>
</Pivot.HeaderTemplate>
This works perfectly fine for basic purpose but I want to achieve an output similar to the following screenshot. Add ellipse for each header and it should at the center of the page.
Can someone suggest whether this is possible or not?
Update
I added a StackPanel like below.
<StackPanel HorizontalAlignment="Center" Grid.Row="1" Orientation="Horizontal">
<Ellipse Fill="Cyan"
Height="10"
Width="10"
Margin="10,0"/>
<Ellipse Fill="Gainsboro"
Height="10"
Width="10"
Margin="10,0"/>
<Ellipse Fill="Gainsboro"
Height="10"
Width="10"
Margin="10,0"/>
</StackPanel>
Now how to assign PivotHeaderForegroundSelectedBrush and PivotHeaderForegroundUnselectedBrush to ellipses?