When using ElementName
, the Binding.Source
value is implicitly set to the object that it refers to. This is one way that we can Bind
without setting a DataContext
. From the Binding.ElementName Property page on MSDN:
By default, bindings inherit the data context specified by the DataContext property, if one has been set. However, the ElementName property is one of the ways you can explicitly set the source of a Binding and override the inherited data context.