WPF-可以使用“后期绑定" WPF应用程序? [英] WPF - Is is possible to use "Late Binding" for WPF application?

查看:51
本文介绍了WPF-可以使用“后期绑定" WPF应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我在WPF网格上有一个listview控件,并从Sql Server中加载数据.

Say I have a listview control on the WPF grid, and load the data from Sql Server.

是否可以在WPF应用程序中使用后期绑定?还是WPF只允许早期绑定?

Is it possible to use late binding in WPF application?  Or WPF allows early binding only?

请帮助

推荐答案

您是什么意思?

What exactly do you mean?

WPF中的所有绑定都必须是后期绑定,因为绑定使用了数据上下文,并且可以在应用执行期间更改该对象,因此不能进行早期绑定.

All binding in WPF has to be late binding since binding uses the datacontext and that object can be changed during the execution of the app so that no early binding can take place.


这篇关于WPF-可以使用“后期绑定" WPF应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆