View Issue Details

IDProjectCategoryView StatusLast Update
0001124NoesisGUIUnity3Dpublic2024-02-07 03:03
Reporterweilitao Assigned Tosfernandez  
PriorityhighSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version2.0.2f2 
Summary0001124: Storyboard can not contain multiple animations targeting same property
DescriptionWhen including multiple animations in a single storyboard, some of which targeting to the same property (although not at the same time). in Noesis, only the last animation can run. But in WPF, everything works as expected.
Additional InformationSample code:

            var storyboard = new Storyboard();
            var duration = new Duration(TimeSpan.Parse("0:0:1"));
            var x1Animation = new DoubleAnimation() {
                To = 800,
                Duration = duration
            };
            var y1Animation = new DoubleAnimation() {
                To = 800,
                Duration = duration
            };
            Storyboard.SetTarget(x1Animation, demo1KingCard);
            Storyboard.SetTarget(y1Animation, demo1KingCard);
            Storyboard.SetTargetProperty(x1Animation, new PropertyPath(Canvas.LeftProperty));
            Storyboard.SetTargetProperty(y1Animation, new PropertyPath(Canvas.TopProperty));
            storyboard.Children.Add(x1Animation);
            storyboard.Children.Add(y1Animation);

            var beginTime = TimeSpan.Parse("0:0:1");
            var x2Animation = new DoubleAnimation() {
                BeginTime = beginTime,
                To = 200,
                Duration = duration
            };
            var y2Animation = new DoubleAnimation() {
                BeginTime = beginTime,
                To = 200,
                Duration = duration
            };
            Storyboard.SetTarget(x2Animation, demo1KingCard);
            Storyboard.SetTarget(y2Animation, demo1KingCard);
            Storyboard.SetTargetProperty(x2Animation, new PropertyPath(Canvas.LeftProperty));
            Storyboard.SetTargetProperty(y2Animation, new PropertyPath(Canvas.TopProperty));
            storyboard.Children.Add(x2Animation);
            storyboard.Children.Add(y2Animation);
TagsNo tags attached.
PlatformAny

Relationships

duplicate of 0000694 assignedsfernandez DoubleAnimation.BeginTime doesn't seem to work properly 

Activities

sfernandez

sfernandez

2022-11-15 11:41

manager   ~0008154

Last edited: 2022-11-15 11:45

More examples, from https://github.com/microsoft/WPF-Samples/blob/master/Animation/CustomAnimation/CustomAnimationExample.xaml#L233-L245

<Storyboard x:Key="CircleTimeline">
          <DoubleAnimation Duration="0:0:5" From="0" To="500" Storyboard.TargetName="circleButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"/>
          <DoubleAnimation Duration="0:0:1.5" From="0" Storyboard.TargetName="circleButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"/>
          <ParallelTimeline BeginTime="0:0:0" Duration="0:0:4.5">
            <customAnimations:CircleAnimation RepeatBehavior="Forever" Duration="0:0:1" Radius="40" Direction="YDirection" Storyboard.TargetName="circleButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"/>
            <customAnimations:CircleAnimation RepeatBehavior="Forever" Duration="0:0:1" Radius="40" Direction="XDirection" Storyboard.TargetName="circleButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"/>
          </ParallelTimeline>
          <ParallelTimeline BeginTime="0:0:4.5">
            <DoubleAnimation To="500" Duration="0:0:0.5" Storyboard.TargetName="circleButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"/>
            <DoubleAnimation To="0.0" Duration="0:0:0.5" Storyboard.TargetName="circleButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"/>
          </ParallelTimeline>
        </Storyboard>


From this example it seems that multiple animations acting on the same DP are nesting the animated values (baseValue -> Animation1 -> result -> Animation2 -> finalResult), but we have to verify this.

Issue History

Date Modified Username Field Change
2017-07-14 03:27 weilitao New Issue
2018-11-01 02:14 jsantos View Status public => private
2018-11-22 10:14 sfernandez Assigned To => sfernandez
2018-11-22 10:14 sfernandez Status new => assigned
2018-11-22 10:14 sfernandez View Status private => public
2018-11-22 10:14 sfernandez Platform => Any
2018-11-22 21:32 sfernandez Relationship added duplicate of 0000694
2022-11-15 11:41 sfernandez Note Added: 0008154
2022-11-15 11:45 sfernandez Note Edited: 0008154