The viewmodel is in fact the ListBox
's data context, and you can get to the ListBox
by using RelativeSource
:
<cmd:EventToCommand Command="{Binding Path=DataContext.LocalConfigurationCommand, RelativeSource={RelativeSource AncestorType=ListBox}}"
CommandParameter="{Binding}"/>