/// <internalonly /> protected override ProceduralAnimation CreateTransitionAnimation(Panel container, EffectDirection direction) { FrameworkElement topContent = (FrameworkElement)container.Children[1]; FrameworkElement bottomContent = (FrameworkElement)container.Children[0]; BlindsAnimation animation = new BlindsAnimation(topContent, bottomContent, Duration, _mode, direction == EffectDirection.Forward); animation.Interpolation = GetEffectiveInterpolation(); return animation; }
/// <internalonly /> protected override ProceduralAnimation CreateTransitionAnimation(Panel container, EffectDirection direction) { FrameworkElement topContent = (FrameworkElement)container.Children[1]; FrameworkElement bottomContent = (FrameworkElement)container.Children[0]; BlindsAnimation animation = new BlindsAnimation(topContent, bottomContent, Duration, _mode, direction == EffectDirection.Forward); animation.Interpolation = GetEffectiveInterpolation(); return(animation); }