程式從Silverlight 2 Beta2升級到Silverlight 2 Release版本時遇到的幾個問題

來源:互聯網
上載者:User

      在安裝了Silverlight 2 Release開發環境下用VS.net2008開啟Silverlight 2 Beta2下開發的程式時,會自動提示是否需要進行升級轉換,但升級轉換後還是有一些地方需要進行手工修改:

 

1、方法VisualStateManager.GetVisualStateGroups( FrameworkElement obj ) 返回的是IList,而不是List<object>

 

2、檔案generic.xmal需要放在根目錄下的Themes檔案夾裡

 

3、ContentPresenter有些屬性已經被移除了,所以在style裡需要做修改,例如FontFamily, FontSize, Foreground

 

4、在使用自訂控制項時,如果空間沒有被顯示(例如 Control.Visible = Collapsed 時) OnApplyTemplate事件將不會被觸發和調用。 這個問題我花了好久才調試出來。

 

5.、VisualTransition.Duration 已經更改為VisualTransition.GeneratedDuration

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.