如何增加枢轴箭头的大小并使其固定在 UWP 中?
How to increase the size of the pivot arrows and make them fixed in UWP?
我有一个在桌面上最常用的枢轴,我希望枢轴中的箭头是固定的,而不仅仅是在悬停时出现,还可以使箭头变大(双倍),因为它们可以轻松单击。
我试图在样式组件中找到该参数,但不幸的是在那里运气不佳。
这是 Pivot 元素的默认样式。 https://msdn.microsoft.com/en-in/library/windows/apps/mt299144.aspx。请更新您所需的属性以实现相同的目的。我更新了左右导航按钮(PreviousButton 和 NextButton)的高度,因此它反映在 UI
这是在默认模板中所做的特定部分更改:
<Button
x:Name="PreviousButton"
Grid.Column="1"
Template="{StaticResource PreviousTemplate}"
Width="20"
Height="72"
UseSystemFocusVisuals="False"
Margin="{ThemeResource PivotNavButtonMargin}"
IsTabStop="False"
IsEnabled="True"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Opacity="1"
Background="Transparent" />
<Button
x:Name="NextButton"
Grid.Column="1"
Template="{StaticResource NextTemplate}"
Width="20"
Height="72"
UseSystemFocusVisuals="False"
Margin="{ThemeResource PivotNavButtonMargin}"
IsTabStop="False"
IsEnabled="True"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Opacity="1"
Background="Transparent" />
我有一个在桌面上最常用的枢轴,我希望枢轴中的箭头是固定的,而不仅仅是在悬停时出现,还可以使箭头变大(双倍),因为它们可以轻松单击。
我试图在样式组件中找到该参数,但不幸的是在那里运气不佳。
这是 Pivot 元素的默认样式。 https://msdn.microsoft.com/en-in/library/windows/apps/mt299144.aspx。请更新您所需的属性以实现相同的目的。我更新了左右导航按钮(PreviousButton 和 NextButton)的高度,因此它反映在 UI
这是在默认模板中所做的特定部分更改:
<Button
x:Name="PreviousButton"
Grid.Column="1"
Template="{StaticResource PreviousTemplate}"
Width="20"
Height="72"
UseSystemFocusVisuals="False"
Margin="{ThemeResource PivotNavButtonMargin}"
IsTabStop="False"
IsEnabled="True"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Opacity="1"
Background="Transparent" />
<Button
x:Name="NextButton"
Grid.Column="1"
Template="{StaticResource NextTemplate}"
Width="20"
Height="72"
UseSystemFocusVisuals="False"
Margin="{ThemeResource PivotNavButtonMargin}"
IsTabStop="False"
IsEnabled="True"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Opacity="1"
Background="Transparent" />