I may have screwed something up, but It looks like you can't create and use a storyboard from code.
Storyboard board = new Storyboard();
... (set other storyboard properties)
DoubleAnimation animation = new DoubleAnimation();
... (set animation properties)
board.Children.Add(animation); // <-- can't do this, as there is no add property. Children is a TimeLineGroup with no add function.
Did I do something wrong, or is that not yet supported?
Thanks.
Pete
Developer Community Program Manager - XAML, WPF, Silverlight, .NETMF/Gadgeteer
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
Psychlist1972
Contributor
6802 Points
1079 Posts
Microsoft
Moderator
Can't Create Storyboard from Scratch in Code
Jun 25, 2007 01:46 AM | LINK
SL 1.1, C#
I may have screwed something up, but It looks like you can't create and use a storyboard from code.
Storyboard board = new Storyboard();
... (set other storyboard properties)
DoubleAnimation animation = new DoubleAnimation();
... (set animation properties)
board.Children.Add(animation); // <-- can't do this, as there is no add property. Children is a TimeLineGroup with no add function.
Did I do something wrong, or is that not yet supported?
Thanks.
Pete
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.