固定枢轴标题项?

时间:2014-11-11 14:36:32

标签: windows-phone-8

我使用pivot create菜单(含4项)。我想要FIXED标题4项目(不移动)并在我移动项目时更改图像项目标题(wp8上的相同菜单facebook) 这是我的代码

{<phone:Pivot Height="758" VerticalAlignment="Bottom" Loaded="Pivot_Loaded_2" UnloadedPivotItem="Pivot_UnloadedPivotItem">
<phone:Pivot.Background>
    <ImageBrush Stretch="Fill" ImageSource="bg_login_popup_head.png"/>
</phone:Pivot.Background>

<phone:Pivot.HeaderTemplate>
    <DataTemplate>
        <Image Source="{Binding}" Height="83" Width="94" />
    </DataTemplate>
</phone:Pivot.HeaderTemplate>


<!--Pivot item one-->
<phone:PivotItem x:Name="item1" Header = "/Resources/Icon/ic_home_actionbar_red.png" Margin="0,10,0,0" Foreground="#FF19DE84">
    <phone:PivotItem.Background>
        <ImageBrush Stretch="Fill" ImageSource="background.png"/>
    </phone:PivotItem.Background>
    <TextBlock HorizontalAlignment="Left" Height="157" TextWrapping="Wrap" VerticalAlignment="Top" Width="337" Margin="61,422,0,0" FontSize="50" Text="Đoi mih mot chut nhe" Foreground="#FFD68F8B"/>
</phone:PivotItem>

<!--Pivot item two-->
<phone:PivotItem Header="/Resources/Icon/ic_love_actionbar_red.png" Margin="0,10,0,-37" >
    <phone:PivotItem.Background>
        <ImageBrush Stretch="Fill" ImageSource="background.png"/>
    </phone:PivotItem.Background>
</phone:PivotItem>

<phone:PivotItem Header="/Resources/Icon/ic_profile_actionbar_red.png" Margin="0,28,0,0">
    <phone:PivotItem.Background>
        <ImageBrush Stretch="Fill" ImageSource="background.png"/>
    </phone:PivotItem.Background>
}

谢谢!

1 个答案:

答案 0 :(得分:0)