Wp7 pivotcontrol set header null

For PivotControl, I use this code to set the Title and Header properties to null, but pivotcontrol still displays a line in the header with the name of the object that is attached to this PivotItem. I want to basically hide everything in the PivotItem header. How can I do it?

<controls:Pivot x:Name="PivotControl" TitleTemplate="{x:Null}" HeaderTemplate="{x:Null}" ItemsSource="{Binding TestEntries}" ItemTemplate="{StaticResource TestEntryItemTemplate}" SelectionChanged="PivotControl_SelectionChanged" LoadedPivotItem="PivotControl_LoadedPivotItem"> </controls:Pivot> 
+5
source share
1 answer

Something like that:

  <DataTemplate x:Key="TestEntryHeaderTemplate"> <TextBlock Text="" Height="1"></TextBlock> </DataTemplate> 

and for PivotControl

  <controls:Pivot x:Name="PivotControl" Title="{StaticResource AppName}" HeaderTemplate="{StaticResource TestEntryHeaderTemplate}" ItemsSource="{Binding TestEntries}" ItemTemplate="{StaticResource TestItemTemplate}" SelectionChanged="PivotControl_SelectionChanged" LoadedPivotItem="PivotControl_LoadedPivotItem"> </controls:Pivot> 
+6
source

Source: https://habr.com/ru/post/900774/


All Articles