Expression Blend 2 Feb/08 Beta will not animate in Test Site.
Last post 04-29-2008 11:44 PM by Yi-Lun Luo - MSFT. 4 replies.
Sort Posts:
04-28-2008 8:20 PM
Expression Blend 2 Feb/08 Beta will not animate in Test Site.

  I'm fairly new at Expression, but I have watched all the videos and read what I can.  My projects animate fine in the canvas, but when I test the site(s) no animation appears. Only the canvas.  Can anyone help  me resolve my issue?
 

brokensaber

Loading...
Joined on 04-29-2008
Posts 2
04-29-2008 2:14 AM
Re: Expression Blend 2 Feb/08 Beta will not animate in Test Site.

brokensaber:
  I'm fairly new at Expression, but I have watched all the videos and read what I can.  My projects animate fine in the canvas, but when I test the site(s) no animation appears. Only the canvas.  Can anyone help  me resolve my issue?
 

Are you creating the animation for Silverlight site? Or just trying to use Blend? If you are doing this for Silverlight, you can show us the code. We will take a look.

If you are just testing Blend, you can ask about this in MS expression forum.http://expression.microsoft.com/en-us/cc182192.aspx There are a lot of Expression Experts in that forum. :) Good Luck!

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed

mchlSync

Loading...
Joined on 09-16-2005
Singapore
Posts 2,219
04-29-2008 6:52 PM
Re: Expression Blend 2 Feb/08 Beta will not animate in Test Site.

  I'm trying to learn to use blend.  I make an animation and it works in blend, but when I hit project/Test site.  The EI pops up with the canvas and no objects either appear or do not animate.  I would like to use silverlight on my site.

brokensaber

Loading...
Joined on 04-29-2008
Posts 2
04-29-2008 11:17 PM
Re: Expression Blend 2 Feb/08 Beta will not animate in Test Site.

brokensaber:
I'm trying to learn to use blend.  I make an animation and it works in blend, but when I hit project/Test site.  The EI pops up with the canvas and no objects either appear or do not animate.  I would like to use silverlight on my site.
 

Okay. I see. Could you please show us the code that you wrote for animation?  

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed

mchlSync

Loading...
Joined on 09-16-2005
Singapore
Posts 2,219
04-29-2008 11:44 PM
Marked as Answer
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):

  1. Open your project in Expression Blend.

  2. 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.

  3. Under Objects and Timeline in the Interaction panel, select the root [UserControl].

  4. 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.

  5. Locate the "Loaded" event.

  6. 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.

  7. 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.

Yi-Lun Luo - MSFT

Loading...
Joined on 10-29-2007
Posts 1,662