WPF pass parent binding object to the converter WPF pass parent binding object to the converter wpf wpf

WPF pass parent binding object to the converter


You can just leave out the path. That way you get at the actual object bound to.

<TextBlock Text="{Binding Converter={StaticResource MyConverter}}"/>

or if you want to be explicit about it:

<TextBlock Text="{Binding Path=., Converter={StaticResource MyConverter}}"/>