2017-10-05 72 views

回答

1

尝试使用微软提供的默认轴风格和模板编辑前景有没有这样的

<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