Binding to other elements in the view
ElementName
{Binding ElementName = "elementName" }
ElementName
is the source of binding another element in the view (defined with thex:Name
directive or theName
property)
RelativeSource
{Binding RelativeSource=…}
Binds to an element in the containment hierarchy of the target element. The source can be an ancestor of the element or its templated parent. Can also be used to bind to
Self
.