I can not reproduce any problems with data binding to Pivot on WP8. There is a known issue with Panorama Databinding on WP8 but not Pivot. What exactly does not work for you?
Here is the base WP8 Pivot Databinding binding code which works great for me.
C # code setting a DataContext for an observable collection of cows:
this.DataContext = new ObservableCollection<Cow>() { new Cow("Foo"), new Cow("Bar"), new Cow("Baz") }; public class Cow { public Cow(string name) { Name = name; } public string Name { get; set; } }
XAML code using this DataContext as ItemSource and Binding PivotItem.Header and PivotItem.Content for the cow name.
<phone:Pivot ItemsSource="{Binding}"> <phone:Pivot.HeaderTemplate> <DataTemplate> <ContentControl Content="{Binding Name}" /> </DataTemplate> </phone:Pivot.HeaderTemplate> <phone:Pivot.ItemTemplate> <DataTemplate> <ContentControl Content="{Binding Name}" /> </DataTemplate> </phone:Pivot.ItemTemplate> </phone:Pivot>
It works well ...


source share