Passing Current Control to IValueConverter

Nathan Sokalski 4,121 Reputation points
2020-01-28T15:40:24.177+00:00

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.

Universal Windows Platform (UWP)
{count} votes