讓Silverlight 2.0動畫動起來Making Silverlight 2.0 animation Start(不能運動原因)

來源:互聯網
上載者:User

問題又來了
Microsoft Expression Blend 2製作的動畫 無法動起來
現在大師教 大家怎麼讓Silverlight.2.0動畫動起來
很簡單
你製作了動畫
但是沒有觸發點
或者說沒有告訴什麼時候開始
Microsoft Visual Web Developer 2008 Express Edition或者VS2008
然後打上Silverlight Tools 補丁
這樣要方便
當然記事本也可以
開啟 代碼部分 比如我的就是Page.xaml.cs
比如我要讓 我製作的動畫 ballmove (Microsoft Expression Blend故事板的名字)
要在啟動時候運行動畫:
如果你看不懂這些代碼
建議找本書 比如WROX紅皮書 C#入門經典 複製代碼 代碼如下:using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace feiruwenzi
{
public partial class Page : UserControl
{
public Page()
{
// Required to initialize variables
InitializeComponent();
this.Loaded += new RoutedEventHandler(Page_Loaded);
//委託掛鈎註冊,這樣才有效,建議用VS或者VWD時候,用TAB鍵操作
}
void Page_Loaded(object sender, RoutedEventArgs e)
{
ballmove.Begin();//動起來
}
}
}

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.