gpt4 book ai didi

c# - 像 Windows Phone 8 中的 Instagram 一样枢轴项目标题

转载 作者:行者123 更新时间:2023-12-03 01:55:17 25 4
gpt4 key购买 nike

我需要您的想法,如何将 Segoe UI 字体或图标放入 Pivot 标题中。我启动了一个新项目,并将基本的 Pivot 放在我的 XAML 上,如果您要求越来越多的代码,仅此而已。

这是我想知道他们如何将项目作为图标而不是文本放置的应用程序链接。 http://instagram.com/

我需要示例代码,而不是童话或成功故事。

        <phone:PivotItem CacheMode="{x:Null}"   FontFamily="Segoe UI Symbol" Header="feed"  >

最佳答案

事实证明有一个 great article在诺基亚开发者 Wiki 上可以找到相关信息。

其要点是不为 PivotItem 设置 header ,而是在页面顶部显示一个列表框。然后,将 ListBox SelectedIndex 链接到 Pivot SelectedIndex。

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ListBox SelectedIndex="{Binding SelectedIndex, ElementName=ContentPivot, Mode=TwoWay}">
<!-- Items -->
</ListBox>
<phone:Pivot x:Name="ContentPivot">
<!-- Items -->
</phone:Pivot>
</Grid>

关于c# - 像 Windows Phone 8 中的 Instagram 一样枢轴项目标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23295762/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com