Re: Re: Expression Blend 2 Feb/08 Beta will not animate in Test Site.
Hello, I think you haven't started the animation. Unlike Flash, In Silverlight, just create a Storyboard is no use. You have to begin the Storyboard in code. Try these steps (from Expression Blend's help document):
-
Open your project in Expression Blend.
-
Open your document (for example, Page.xaml) by double-clicking it under Files in the Project panel.Your document will open for editing. Make sure you are in Design view, by clicking the Design tab on the right side of the artboard.
-
Under Objects and Timeline in the Interaction panel, select the root [UserControl].
-
In the Properties panel, click the Events button (a lightning icon). A list of all available events for the selected element appears, in alphabetical order.
-
Locate the "Loaded" event.
-
There are two ways that you can generate the empty event handler method:
-
Double-click in the text box beside the Loaded event name. Expression Blend will generate a default name for your event handler method and enter it into the text box, and will generate the code for the empty method.
-
Type a name into the text box beside the Loaded event name, and then press ENTER or click somewhere else to move focus away from the text box. Event method names must begin with a letter. If the method name does not already exist in the code-behind file, Expression Blend will generate the code for the empty method and will use the name that you typed in.
-
From this point, Expression Blend will do one of the following things:
-
If you have Visual Studio installed, Expression Blend will open your project in Visual Studio, will open your code-behind file, and then will paste in the empty event handler method for you.
-
If you do not have Visual Studio installed, Expression Blend will copy the empty event handler method to the Clipboard and will display a pop-up window that describes what you can do next. In this case, you can open the code-behind file manually to paste the method inside the class definition for the window, as follows:
public partial class Page
{
public Page()
{
this.InitializeComponent();
// Insert code required on object creation below this point.
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
}
} |
8. In the Page_Loaded method, write this line of code to begin the Storyboard (Storyboard1 is the default name Blend give to your Storyboard. If you have modified the name, you should use your own name instead):
Storyboard1.Begin();
shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.