The animation transition effect when the ListBox list item is deleted by Windows Phone.

Source: Internet
Author: User

When the ListBox contains multiple pieces of data, assume that when the second row is deleted, the third and fourth columns will suddenly appear on the second and third positions, with no expected transitional effect in the middle. now we can add this effect to ListBox.

1. First create a ListBox in mainpage.

2. Use blend to open the project (right-click the project name and select "open in blend ...")

3. Edit the layout container of ListBox, find the ListBox on the current page, right-click it, and operate as shown in the figure.

4. Name itempaneltemplate

 

5: Select fluidmovebehavior in the behavior (behavior) option of the assets panel and hold it to stackpanel, adjust the animation execution time to 5 seconds (the animation execution time can be changed as needed) and change appliesto to children. (that is, apply the animation to all sub-elements of the container ). press ctrl-s. save.

6. Remember to take a look at what blend helped us generateCode. Code address

Click Open Link

 

Related Article

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.