WPF之DataContext

1. 继承属性:

DataContext is a property on FrameworkElement (base class for all WPF Controls) and is implemented as a DependencyProperty. DataContext是一个财产上的FrameworkElement的(所有WPF控件的基类),作为DependencyProperty的实现。 That means all the descendant elements in the logical tree share the same DataContext.这意味着所有的后代元素的逻辑树中的份额相同的DataContext。

posted @ 2014-04-25 18:09  马语者  阅读(2489)  评论(0编辑  收藏  举报