Data Binding

18 篇文章 0 订阅
14 篇文章 0 订阅

Data binding is the process that establishes a connection between the application UI and business logic. If the binding has the correct settings and the data provides the proper notifications, then, when the data changes its value, the elements that are bound to the data reflect changes automatically. Data binding can also mean that if an outer representation of the data in an element changes, then the underlying data can be automatically updated to reflect the change. For example, if the user edits the value in a TextBox element, the underlying data value is automatically updated to reflect that change.

A typical use of data binding is to place server or local configuration data into forms or other UI controls. In WPF, this concept is expanded to include the binding of a broad range of properties to a variety of data sources. In WPF, dependency properties of elements can be bound to CLR objects (including ADO.NET objects or objects associated with Web Services and Web properties) and XML data.

 

绑定一般指的是一件事情映射到另一个 – 即一个演示文稿对象数据源。它可以从通常指一个数据库,或类似的源(XML文件,Web服务等)将数据绑定到一个演示文稿或元素控制 – 认为清单或HTML,组合框或在桌面软件数据网格表。

您通常需要绑定到数据源,而不是其他方式表示的元素。这将涉及一些映射类型 – 即哪些字段从数据源,你希望出现在输出中。

如需在一个环境中看到几个信息:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值