Passing Current Control to IValueConverter
Nathan Sokalski
4,111
Reputation points
I have an ItemsControl, and in several of the Binding(s) in the DataTemplate I use an IValueConverter. In several of these IValueConverter(s) I need to access the control in which I am doing the Binding (for example, if I am binding the Tag property, I need to access the control that contains that Tag property). My first idea was to pass the control as the ConverterParameter, but I could not figure out how to do this. What can I do to access the containing control from within an IValueConverter? Thanks.
Sign in to answer