wp7 pivotcontrol set header null

前端 未结 1 1749
自闭症患者
自闭症患者 2021-01-13 09:54

For a PivotControl, I am using code like this to set the Title and Header Property to null, but the pivotcontrol still displays a string in the Header with the name of the o

相关标签:
1条回答
  • 2021-01-13 10:03

    Did something like this:

        <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>
    
    0 讨论(0)
提交回复
热议问题