Can you explain self relative source binding in WPF?


This relative binding helps to bind to one property of an element to the other property of the
same element. For example in the below XAML the border width is binded to height of the same
border element.

<Border BorderBrush="Black" BorderThickness="1" Height="139" Width="{Binding Height, RelativeSource={RelativeSource Self}}"/>