这是您如何实现它的方法。
第 1 步 => 首先转到 => App.xaml.cs 并将您的 RootFrame 更改为 Transition Frame。
RootFrame = new TransitionFrame();
第 2 步 => 转到您要在其上实现TurnstyleFeatherTransition
动画的页面并添加启用 TurnstyleFeatherTransition 的动画代码。把它放在你的 RootGrid/Root 容器之前
<toolkit:TransitionService.NavigationInTransition>
<toolkit:NavigationInTransition>
<toolkit:NavigationInTransition.Backward>
<toolkit:TurnstileFeatherTransition Mode="BackwardIn"/>
</toolkit:NavigationInTransition.Backward>
<toolkit:NavigationInTransition.Forward>
<toolkit:TurnstileFeatherTransition Mode="ForwardIn"/>
</toolkit:NavigationInTransition.Forward>
</toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
<toolkit:NavigationOutTransition>
<toolkit:NavigationOutTransition.Backward>
<toolkit:TurnstileFeatherTransition Mode="BackwardOut"/>
</toolkit:NavigationOutTransition.Backward>
<toolkit:NavigationOutTransition.Forward>
<toolkit:TurnstileFeatherTransition Mode="ForwardOut"/>
</toolkit:NavigationOutTransition.Forward>
</toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
第 3 步 => 为控件提供羽化索引。通过添加以下代码。
toolkit:TurnstileFeatherEffect.FeatheringIndex="0"
例如 =>
<Button toolkit:TurnstileFeatherEffect.FeatheringIndex="0" ></Button>
你已准备好出发 :)