View Issue Details

IDProjectCategoryView StatusLast Update
0001774NoesisGUIC# SDKpublic2020-08-12 17:55
Reporterck_russAssigned Tosfernandez 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.4 
Target Version3.0.5Fixed in Version3.0.5 
Summary0001774: Unable to set Storyboard Target in code
DescriptionA Storyboard's target/targetname set in code is ignored on a call to storyboard.Begin():

-----
            DoubleAnimation d = new DoubleAnimation();
            d.Duration = new Duration(TimeSpan.FromSeconds(2));
            d.To = 200;

            Storyboard sb = new Storyboard();
            sb.Children.Add(d);

            Storyboard.SetTarget(sb, CodeButton);
            Storyboard.SetTargetProperty(sb, new PropertyPath("Width"));
            Storyboard.SetTargetName(sb, "CodeButton");

            Debug.Assert(CodeButton.Name == "CodeButton");
            Debug.Assert(Storyboard.GetTarget(sb) == CodeButton);
            Debug.Assert(Storyboard.GetTargetProperty(sb).Path == "Width");
            Debug.Assert(Storyboard.GetTargetName(sb) == "CodeButton");

            sb.Begin();
-----

In the above code snippet all assertions pass, but the call to Begin() fails with a log output of: ""Cannot Begin Storyboard, Target not found". Manually specifying the target "sb.Begin(CodeButton)" does work.
TagsC# Storyboard
PlatformWindows

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-08-11 07:14 ck_russ New Issue
2020-08-11 07:14 ck_russ Tag Attached: C# Storyboard
2020-08-11 10:41 jsantos Target Version => 3.0.5
2020-08-11 10:41 jsantos Assigned To => sfernandez
2020-08-11 10:41 jsantos Status new => assigned
2020-08-12 17:55 sfernandez Status assigned => resolved
2020-08-12 17:55 sfernandez Resolution open => fixed
2020-08-12 17:55 sfernandez Fixed in Version => 3.0.5