Skip to main content

Microsoft Silverlight

animation problemRSS Feed

(0)

sharp81
sharp81

Member

Member

2 points

2 Posts

animation problem

Hi,

I created a simple application where I used a media element and did some transformations on it with the timeline like the one showed in the example video.

I am able to preview it within the expression blend but when I compile it and run it in the browser, I dont see any of these transforms happening. Can you please let me know how to get this working?

Regards

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

Re: animation problem

How are you triggering the beginning of your timeline. Are you using Canvas.Triggers, if you want your timeline to be started upon loading your content use syntax like the following:

<Canvas.Triggers>
      <EventTrigger RoutedEvent="Canvas.Loaded">
        <BeginStoryboard>
          <Storyboard x:Name="Timeline1">

              <DoubleAnimationUsingKeyFrames ....

         </Storyboard>
        </BeginStoryboard>
      </EventTrigger>
    </Canvas.Triggers>
 

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

sharp81
sharp81

Member

Member

2 points

2 Posts

Re: animation problem

 I want to use the javascript file that is create it as a webpage. Not use the wpf format. So I dont think I will be using the trigger. I dont know where exactly the problem lies.

 

Thanks

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities