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。