|
|
|
Forum 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.
|
|
|
|
|
Supreme 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.
=========================
|
|
|
|