Advanced Forum Search Results
-
I did get lucky. I have this working on my web site just they way I wanted. I moved some text on the animation and the play button started replaying that text everytime I clicked it. I needed what I'll call a keyframe on 00.00 of the timeline in every part of the animation I want to replay.
-
[quote user="MawashiKid"]
1) missing a using directive
Have you checked if you added the following using directive in the code behind?
using System.Windows.Media.Animation; <---------
2) Second even if it's listed in the code have you checked if you previously added an assembly reference in your SLV ...
-
I created a new project in visual studio 2008 named AnimatedControlSample. The only devation from your example is it uses MainPage instead of Page. I tryed to build the project and I get 2 errors: Error 1 'System.Windows.Media.Animation.Storyboard' does not contain a definition for 'RepeatBehaviour' and no extension ...
-
[quote user="bryant"]1) Replay the animation each time you click the button. For this I would suggest you go back to my first suggestion at the top of this thread and set the From property on the animations.[/quote]
I have no idea how to set the from property on the animation or I would try it.
I want the animation to play ...
-
The code provided here on the forum and copied below will now play the animation, One time when clicked.
I am right back where I started with this problem.
the controlstoryboard behavior i dragged onto the button in expression blend 3 plays the animaiton one time when clicked
Now I have 2 ways to play the animation one time with the button
-
I realy hoped the repeatBehaviour would loop the animation but it wont build with M/S expression blend 3
namespace SmlBanner
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
Storyboard1.Begin();
...
-
that was it. The page build succeded. I would have never found something like that without your help.
However, the play button does nothing when clicked.
-
I was hoping VS 2008 would help me wright the button event however I can only view the xaml and have no design view for mainpage.xaml
I added what you suggest in the code behind mainpage.xaml.cs however it thoughs a build error:
the name 'storyboard1' does not exist in the current context.
even though it is in the ...
-
how would i plug this button event code into my MainPage.xaml.cs file?
namespace SmlBanner
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
}
}
-
I have a playanimation behavior on a button that plays my silverlight animation only ounce and stops at the end.
In flash i used to add a go to and Stop action to go to and stop at a keyframe.
Some how I need to rewind my animation with a behavior or code so the play button will again play the animation
see www.jayih.com for animation with ...