Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Windows Phone 8.1 应用在 8.1 中运行良好。但是,最近我尝试将我的代码移动到 Windows 10,我发现所有 pivot.item 的标题似乎都向上移动并且文本已被切断。任何想法?我想知道是否有任何方法可以将标题设置为中心以避免这个问题。
最后我尝试添加一些填充来解决这个问题
<PivotItem.Header> <Grid> <TextBlock Padding="0,10,0,0" Text="{Binding LocalizedResources.WP_Inbox_PivotItemImportant, Source={StaticResource LocalizedStrings}}"/> </Grid> </PivotItem.Header>