0
PivotItem SelectedPivot;
SelectedPivot = (PivotItem)AIP_Pivot.SelectedItem;
SelectedPivot.FontSize = 35;
我已经实现了此代码,但它不起作用。谁能告诉我为什么?和什么是解决方案?如何更改UWP中选定数据项的字体大小
PivotItem SelectedPivot;
SelectedPivot = (PivotItem)AIP_Pivot.SelectedItem;
SelectedPivot.FontSize = 35;
我已经实现了此代码,但它不起作用。谁能告诉我为什么?和什么是解决方案?如何更改UWP中选定数据项的字体大小
尝试使用微软提供的默认轴风格和模板编辑前景有没有这样的
<VisualState x:Name="Selected">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground" >
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Grid"
Storyboard.TargetProperty="Background" >
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightTransparentBrush}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
你可以看看整个风格在这里枢纽项目所选择的项目 - https://msdn.microsoft.com/en-us/library/windows/apps/mt299142.aspx