Controlling UserControl's Timeline
LearnExpression Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Controlling UserControl's Timeline Expand / Collapse
Author
Message
Posted 2/5/2008 4:09:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/5/2008 7:51:19 AM
Posts: 1, Visits: 7
First, one big Hello for everyone here on the forum!

I am new to Expression Blend and Microsoft WPF but I'm putting a lot of effort in discovering them. I have a question.

I'm building a project with one main Window and a few custom made usercontrols in it. One of them has an animation on Timeline1, which I would like to start by pressing on a button located in main window.
So far I understand I must do that through code behind file, in my case window1.xaml.cs. I used event handlers a few times but just for changing properties. If someone can show me a code example I would be very pleased.
Post #1119
Posted 2/7/2008 12:39:08 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 10/24/2008 2:27:36 PM
Posts: 437, Visits: 632
If you're trying to get that animation to play, you can do that in Blend, instead of your code behind file. You will need to set a Trigger, which is in your animation workspace. If you create a new Event Trigger, set the When to your button and clicked and then hit the plus button to the right of that, where you will set what happens. In that new line you can select your Timeline 1 and tell it to Begin.

=========================
My wife has given birth to our twins, so I'm still going to be spotty around here. It never seems to correct itself does it? I'm sorry, I'm trying.
=========================
Post #1133
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.

Permissions Expand / Collapse

All times are GMT -6:00, Time now is 4:53am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 16 queries. Compression Disabled.