Learn Silverlight 2 series (35): Upgrade Silverlight 2 Beta 1 applications to Beta 2

Source: Internet
Author: User
Tags silverlight

After the Silverlight 2 Beta 2 release, there have been a lot of changes on the original Beta 1 basis. This article summarizes the changes between Silverlight 2 Beta1 and Beta 2, as well as some of the issues that you may encounter during the upgrade of Silverlight 2.0 Beta 1 applications to Beta 2.

1. Uninstall all the original components related to Beta 1

2. Install Beta 2 related components

3. After opening the original item, the following prompt dialog box appears, prompting you to upgrade to the most recent version.

Control-change controls are placed in the System.Windows.dll assembly

The controls that were originally in System.Windows.Controls.dll were placed in the System.Windows.dll in Beta 2, which means that the controls are already in runtime. If you have the following code in the original program, you need to remove:

xmlns:my="clr- namespace:System.Windows.Controls;assembly=System.Windows.Controls"

And you need to modify the control declarations under the corresponding namespaces, such as:

<my:Button x:Name="myButton"/>

In Beta 2, after this adjustment, the volume of the XAP file can be greatly reduced.

Changes in ToolTip

The direct use of ToolTip has not been allowed in Silverlight Beta 2, and can only be used through ToolTipService, with the addition of the following public properties and methods in ToolTipService removed:

Betweenshowdelayproperty

Initialshowdelayproperty

Showdurationproperty

Getbetweenshowdelay

Getinitialshowdelay

Getshowduration

Setbetweenshowdelay

Setinitialshowdelay

GetToolTip

Setshowduration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.