arámetro de comando @Pass del xaml
Intento hacer algo como esto:
<DataGrid Name="myGrid" ItemSource="{Binding Path=MyCollection}">
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem
Command="{Binding RemoveRow}"
CommandParameter="{Binding ElementName=myGrid, Path=SelectedItem}">
</ContextMenu>
</DataGridContextMenu>
</DataGrid>
pero siempre obtuve un valor nulo (intenté también SelectedIndex y SelectedValue)
si paso el siguiente parámetro al código de ejecución, funciona:
<MenuItem Command="{Binding RemoveRow}" CommandParameter="1">