共用方式為


Data binding (XAML)

Purpose

Data binding enables you to synchronize the elements of your app with different sources of data, including databases, files, and internal objects.

In this section

Topic Description

Quickstart: Data binding to controls

This topic shows you how to bind a control to a single item or bind a list control to a collection of items in a Windows Store app using C++, C#, or Visual Basic. In addition, this topic shows you how to customize the display of control items, implement a details view based on a selection, and convert data for display. For more detailed info, see Data binding with XAML.

Data binding with XAML

Data binding provides a simple way for Windows Runtime apps using C++, C#, or Visual Basic to display and interact with data.

How to create a master-details binding

You can make a multi-level master/details view of hierarchical data by binding list controls to CollectionViewSource instances.

 

Developer audience

Data binding is designed for use by developers who use data in their apps.