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

  • Home
  • SEARCH
  • 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 6186467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:53:39+00:00 2026-05-24T01:53:39+00:00

I have a Pivot control which I am using as following within the XAML.

  • 0

I have a Pivot control which I am using as following within the XAML.
I have bound the Pivot Title to a method on my view model as its content will vary depending upon what is being displayed.

 <controls:Pivot x:Name="MainPivot" ItemsSource="{Binding PivotItemHeaders}" Title="{Binding ApplicationTitle}"  >
        <controls:Pivot.HeaderTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding Description}"/>
            </DataTemplate>
        </controls:Pivot.HeaderTemplate>
        <controls:Pivot.ItemTemplate>
            <DataTemplate>
                <ListBox x:Name="EventsListbox"
                         ItemsSource="{Binding allEventItems}"
                         ItemTemplate="{StaticResource EventDisplay3}"
                         SelectionChanged="EventsListbox_SelectionChanged"/>
            </DataTemplate>
        </controls:Pivot.ItemTemplate>
    </controls:Pivot>

The collection of items is being refreshed and the binding is working fine for these objects – however the Pivot title is not refreshing with the new value.
It seems stuck at the value when the page/pivot control was first shown.

Any ideas how I can get the pivot control to refresh? – Thanks

  • 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-24T01:53:40+00:00Added an answer on May 24, 2026 at 1:53 am

    I just did a quick test, binding works just fine:

    <controls:Pivot Title="MY APPLICATION" ItemsSource="{Binding Items}">
        <controls:Pivot.HeaderTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding LineOne}" />
            </DataTemplate>
        </controls:Pivot.HeaderTemplate>
        <controls:Pivot.ItemTemplate>
            <DataTemplate>
                <Grid>      
                    <Button Content="Update" Click="Button_Click" />
                </Grid>
            </DataTemplate>
        </controls:Pivot.ItemTemplate>
    </controls:Pivot>
    

    And in the C#

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        App.ViewModel.Items.Clear();
        App.ViewModel.Items.Add(new ItemViewModel() { LineOne = "foo" });
        App.ViewModel.Items.Add(new ItemViewModel() { LineOne = "bar" });
        App.ViewModel.Items.Add(new ItemViewModel() { LineOne = "baz" });
    }
    

    So clearly you’re doing something very wrong. Post your code and we’ll take a look.

    Update

    Title Binding also works

    XAML

    <controls:Pivot Title="{Binding Title}">
        <controls:PivotItem Header="first">
            <Grid>
                <Button Click="Button_Click" Content="OK!" />
            </Grid>
        </controls:PivotItem>
    </controls:Pivot>
    

    C#:

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        Title = "foobar!";
        PropertyChanged(this, new PropertyChangedEventArgs("Title"));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a Windows Phone 7 page I have the following control: <controls:Pivot x:Name=Pivoter Title={Binding
I have a Pivot which contains a WebBrowser control that practically takes up the
I have a pivot control and a button which does selectedIndex++ and when the
I have in my Xaml a pivot control : <controls:Pivot ItemsSource={Binding ObjectList}> <controls:Pivot.HeaderTemplate> <DataTemplate>
In my MainPage.xaml , I created a Pivot Control: <controls:Pivot Title=Powder God Name=PivotControl> .
Does anyone have an example of a pivot using a table with an XML
I have the following five tables: ISP Product Connection AddOn AddOn/Product (pivot table for
If I have the following: {hdrs: [Make,Model,Year], data : [ {Make:Honda,Model:Accord,Year:2008} {Make:Toyota,Model:Corolla,Year:2008} {Make:Honda,Model:Pilot,Year:2008}] }
I have a PivotControl that contains ListBox elements: <controls:Pivot Title=SECTIONS x:Name=pivotControl ItemsSource={Binding SectionViewModels}> <controls:Pivot.HeaderTemplate>
I have a (MS) SQL VIEW with no control over and it also queries

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.