更改 PivotItem 标题的样式

Change style of PivotItemHeader

我目前正在尝试更改 UWP 中枢轴控件的视觉样式。

我想将 "just text" 的普通默认样式更改为如下内容:

这只是我在网上快速找到的一个示例。但它很好地代表了我想要实现的目标。 我想让枢轴项目看起来像标签。 They should be visibly seperated from another and when one of the items is selected I want to make it visually stand out from the others.

我对样式控件真的很陌生。实际上我昨天才开始读到它。但它确实有助于使应用程序在视觉上变得有趣,而不仅仅是简单的默认样式。

非常感谢您的帮助或指导:)

问候 :)

我们可以修改PivotHeaderItem default style to implement the effect. Here is also a similar thread that describes how to achieve it :

请注意:PivotHeaderItem default style 基于 Windows 软件开发工具包 (SDK) for Windows 10,版本 1511(Windows SDK 版本 10.0. 10586.0)。如果您的应用程序针对其他版本,则样式和资源可能具有不同的值。但是实现效果的方法是相似的。您可以在您的 Windows SDK 安装路径中找到相应的源,例如: C:\Program Files (x86)\Windows Kits\DesignTime\CommonConfiguration\Neutral\UAP.0.16299.0\Generic.