想让所有的Header都在页面居中,于是找到了以下方法。 找到答案的页面
通过修改Pivot的模板中的下面内容。其实就是在模板中搜索“HeaderClipper”,然后把HorizontalContentAlignment="Stretch"
改为HorizontalContentAlignment="Center"
。大功告成。
<!-- some code before --> <ContentControl x:Name="HeaderClipper" Grid.Column="1" HorizontalContentAlignment="Center" UseSystemFocusVisuals="True"> <!-- some code before -->
本文由 Kevin Yang 发布在 Kevin Yang,转载此文请保持文章完整性,并请附上文章来源(Kevin Yang)及本页链接。
原文链接:https://www.yzj0308.com/align-pivot-header-items-in-center-of-the-page/
原文链接:https://www.yzj0308.com/align-pivot-header-items-in-center-of-the-page/