I have a treeview with textblocks that display some text according to a converter. I want the textbox to update according to a property that is not used in the converter, but is also a property of the object sent to the converter.
The following is my textblock in a hierearchy template in my treeview:
<TextBlock Text="{Binding Converter={StaticResource EntityIDToStrConverter},UpdateSourceTrigger=}" Margin="6" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
This converter uses 3 different properties of the object to return a string according to what I need. So usually I have my textblock binded to a path like the following:
<TextBlock Text="{Binding Binding Path=Name, Converter={StaticResource EntityIDToStrConverter},UpdateSourceTrigger=}" Margin="6" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"/>
But that would not allow my object to pass to the converter, and rather only the Name property. How could I make the binding sensitive to changes of a specific property while still passing the entire object to the converter?