Introduction to Windows 8 style application development five ListView data controls

Source: Internet
Author: User

What is a ListView data control?

1) ListView Data controls are used to display data collections.

2) inherits from ItemsControl.

3 In most cases, the data is displayed vertically, and the data displayed is usually sorted.

4 When you switch to snap view (paste view), you typically use ListView to display the data collection.

How do I build a ListView data control?

First we need to take a look at some of the important properties and events in the ListView control:

1 isitemclickenabled property: Gets or sets whether clicking the list item triggers the Click event;

2 SelectionMode Property: Gets or sets the selected mode;

3 HeaderTemplate Property: Gets or sets the template for the title of the list, changing the appearance of the title;

4 Groupstyle Property: Gets the collection of Groupstyle objects, defines the appearance of each group;

5 SelectionChanged Event: Trigger When the selected item changes;

6 ItemClick Event: When the list item is clicked and the Isitemclickenabled property value is True, the event is triggered;

In addition, when we use ListView for data rendering, we need to consider the interaction mode of the ListView control:

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.