views:

33

answers:

1

Hello, I've got a WPF ListBox that's databound to an ObservableCollection of type Employee. In the ItemTemplate, I'm binding the content of controls to various properties, as normal. But for one of the controls in the template, I've made a custom converter class that it uses, and I'd like the converter to get passed in the Employee object itself as the value, as opposed to one of its' properties. Is this easy to do? I don't want to resort to something like adding a read only property to Employee whose getter just says return this.

Thanks in advance!

+2  A: 

Just use

{Binding}

or

{Binding Converter={...}}

i.e. without a Path.

David Schmitt
That did it! Thanks!