locked
[UWP] ElasticEase.Oscillation causes crash in anniversary update SDK RRS feed

  • Question

  • Hi All,

    I am using ElasticEase with zero oscillation for my rotate animation.

    There is no problem with SDKs 10240 and 10586. But my code crashes with SDK 14393. 

    While debugging I have found that setting Oscillations = 0 causes crashes.  It runs without crash for values greater than one. Default value of Oscillation is 3. I don't want oscillations so I cannot leave it unset.

    My code

    <Grid Background="Blue" Width="300" Height="300" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="tile"/>
            
     public MainPage()
            {
                this.InitializeComponent();
                tile.Projection = new PlaneProjection() { CenterOfRotationY = 0.5 };
                Storyboard story = new Storyboard();
                EasingDoubleKeyFrame keyframe1 = new EasingDoubleKeyFrame();
                keyframe1.Value = 0;
                keyframe1.KeyTime = TimeSpan.FromSeconds(0);
    
                EasingDoubleKeyFrame keyframe2 = new EasingDoubleKeyFrame();
                keyframe2.Value = 90;
                keyframe2.KeyTime = TimeSpan.FromSeconds(5);
                keyframe2.EasingFunction = new ElasticEase() { Oscillations = 0 };
    
                DoubleAnimationUsingKeyFrames timeline = new DoubleAnimationUsingKeyFrames();
                timeline.KeyFrames.Add(keyframe1);
                timeline.KeyFrames.Add(keyframe2);
                story.Children.Add(timeline);
                Storyboard.SetTarget(timeline, tile);
                tile.RenderTransform = new CompositeTransform() { ScaleY = -1 };
                Storyboard.SetTargetProperty(timeline, "(UIElement.Projection).(PlaneProjection.RotationX)");
                story.Begin();
            }

    This link shows Oscillation can be equal to 0. I need a solution that does not affects my animation in anyway. Please suggest.

    Regards,
    Jessie





    Wednesday, November 9, 2016 5:13 AM

All replies

  • Hi Victory Jessie,

    Thanks for your post.

    According to your code, I can reproduce this issue. I’m not sure if it’s a known issue. I would contact with the relevant team. If any update, I would update here timely. 

    Best Regards,

    Xavier Eoro


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, November 10, 2016 2:30 AM
  • Thank you @Xavier. I am waiting for further updates.
    Thursday, November 10, 2016 6:44 AM
  • Hi Victory Jessie,

    Thank you for reporting this issue, this is a unknown issue in SDK 14393, we have logged it internally.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 14, 2016 3:10 AM
  • Hi Victory Jessie,

    0 is a value that's rejected by Windows::UI::Composition. The related team will look at fixing it.

    For now the workaround is to use ExponentialEase or something else without oscillations.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, December 7, 2016 3:32 AM
  • Thank you @Franklin Chen. I will check whether ExponentialEase matches my requirement or not.
    Friday, December 9, 2016 11:13 AM