Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3438560
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:12:09+00:00 2026-05-18T08:12:09+00:00

In my Phone 7 application, I’m using a pivot control. Now I’d like to

  • 0

In my Phone 7 application, I’m using a pivot control. Now I’d like to change the background of its title and header area. How can I achieve this?

Is there an overall template for the pivot control that can be customized?

I’ve already tried to set the background of the grid containing the pivot control to the header color and then to set the background of each pivot item to the original background color. It looks good on first sight. But when you wipe the pivot item to the left to display the second item, an area colored in the header color appears between the two pivot items. So that approach is not working.

Furthermore I’ve tried to customize the template of the title and the header item. But these templates only cover the area of the text itself, not the whole header and template area.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:12:10+00:00Added an answer on May 18, 2026 at 8:12 am

    Here’s the variant with changing the control’s template. Change the Background=”Red” to whatever brush you want.

    <Style x:Key="PivotStyle1" TargetType="controls:Pivot">
      <Setter Property="Margin" Value="0"/>
      <Setter Property="Padding" Value="0"/>
      <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
      <Setter Property="Background" Value="Transparent"/>
      <Setter Property="ItemsPanel">
        <Setter.Value>
          <ItemsPanelTemplate>
            <Grid/>
          </ItemsPanelTemplate>
        </Setter.Value>
      </Setter>
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="controls:Pivot">
            <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                  VerticalAlignment="{TemplateBinding VerticalAlignment}">
              <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
              </Grid.RowDefinitions>
              <Grid Background="Red" CacheMode="BitmapCache" Grid.RowSpan="2" />
              <Grid Background="{TemplateBinding Background}" CacheMode="BitmapCache"
                    Grid.Row="2" />
              <ContentPresenter ContentTemplate="{TemplateBinding TitleTemplate}"
                                Content="{TemplateBinding Title}" Margin="24,17,0,-7"/>
              <controlsPrimitives:PivotHeadersControl x:Name="HeadersListElement"
                                                      Grid.Row="1"/>
              <ItemsPresenter x:Name="PivotItemPresenter"
                              Margin="{TemplateBinding Padding}" Grid.Row="2"/>
            </Grid>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
    
    ....
    
    <controls:Pivot Title="MY APPLICATION" Style="{StaticResource PivotStyle1}">
    
    ....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I'd like to control the IP phone from my web application, how should
I have an asp.net intranet application for booking jobs and a phone index. Now
After I downloaded the Google Mail and Google Maps application into my mobile phone
If I had a phone number like this string phone = 6365555796; Which I
I'm developing a Windows Phone application. I have defined a ListBox.ItemTemplate's DataTemplate as follows:
I'm developing a Windows Phone application. I make the question here because I think
I have doubt in Windows 7 Phone Application Development. I need to acess the
I'm developing an iPhone application that replicates the functionality of the built-in phone application,
I am working on a Mobile 6 Classic phone application for the first time
I am working on a Silverlight based Windows Phone application that only supports landscape

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.