I know that pivot control of windows phone has two parts pivot headers and pivot item control.
what i want to display is, pivot headers below the pivot item control
I have the solution. You need to inherit from Pivot
control and switch headers row with items row:
public class PivotFooter : Pivot
{
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
var headers = base.GetTemplateChild("HeadersListElement") as PivotHeadersControl;
var items = base.GetTemplateChild("PivotItemPresenter") as ItemsPresenter;
var grid = headers.Parent as Grid;
if(grid != null)
{
var firstHeight = grid.RowDefinitions[1].Height;
var secondHeight = grid.RowDefinitions[2].Height;
grid.RowDefinitions[1].Height = secondHeight;
grid.RowDefinitions[2].Height = firstHeight;
}
headers.SetValue(Grid.RowProperty, 2);
items.SetValue(Grid.RowProperty, 1);
}
}