Note that there are some explanatory texts on larger screens.

plurals
  1. POHow does the EntranceThemeTransition from LayoutRootStyle cascade to child controls?
    primarykey
    data
    text
    <p>I'm going through the <a href="http://msdn.microsoft.com/en-us/library/windows/apps/br211380.aspx" rel="nofollow">WinRT-XAML tutorials</a> at the moment, and I cannot figure out why the WebView control doesn't do the same entrance animation as the other controls. There is a section on <code>Adding animations and transitions</code> which explains that it is not expected to and that a Storyboard with animation is needed to do that.</p> <p>I've found the source of the setter that applies the transition to the other controls in StandardStyles.xaml.</p> <pre><code>&lt;Style x:Key="LayoutRootStyle" TargetType="Panel"&gt; &lt;Setter Property="Background" Value="{StaticResource ApplicationPageBackgroundThemeBrush}"/&gt; &lt;Setter Property="ChildrenTransitions"&gt; &lt;Setter.Value&gt; &lt;TransitionCollection&gt; &lt;EntranceThemeTransition/&gt; &lt;/TransitionCollection&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; </code></pre> <p>It seems like this should apply the EntranceThemeTransition to every child control of a panel with this style - or it should only apply the transition to its direct children. It seems to be doing a bit of both.</p> <p>Also I expected controls that do not have any positioning information to be animated along with their parents. That doesn't seem to be the case, the direct parent of the WebView animates just fine.</p> <p>What makes WebView so special in this case? Apart from the fact that it isn't part of the default template. Why do we need to add a PopInThemeAnimation and Storyboard to get this one control to move and why does it move at a different speed to the control it is supposed to be inside!?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload