要素の 1 つで EntrenceThemeAnimation を無効にしたいと考えています。このアニメーションをすべての子に設定するグリッドがあります(ページのデフォルトだと思います)。このグリッドの子である ContentControl に対してこのアニメーションを無効にすることは可能ですか?
以下を試してみましたが、うまくいかないようです。
コンテンツ
<Grid Style="{StaticResource LayoutRootStyle}">
...
<!-- no animations for this element -->
<ContentControl x:Name="Background" Content="Tabstagram" Margin="0" Grid.Row="1" Style="{StaticResource Background}">
<ContentControl.Transitions>
<TransitionCollection/>
</ContentControl.Transitions>
<ContentControl.ContentTransitions>
<TransitionCollection/>
</ContentControl.ContentTransitions>
</ContentControl>
スタイル
<Style x:Key="LayoutRootStyle" TargetType="Panel">
<Setter Property="Background" Value="{StaticResource ApplicationPageBackgroundThemeBrush}"/>
<Setter Property="ChildrenTransitions">
<Setter.Value>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Background" TargetType="ContentControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Grid.ChildrenTransitions>
<TransitionCollection/>
</Grid.ChildrenTransitions>
<Grid.Transitions>
<TransitionCollection/>
</Grid.Transitions>
<Rectangle IsHitTestVisible="False" StrokeThickness="75" Margin="0" Fill="#FFC1C1C1"/>