When clicking button inside the DataGrid row the command doesn't get executed in the ViewModel.
Both Page and ViewModel are created by the DI container so I need to be able to pass the POCO object of the row where the button is clicked to the ViewModel.
<telerikGrid:RadDataGrid DataContext="{x:Bind ViewModel}" ItemsSource="{x:Bind ViewModel.Source}" AutoGenerateColumns="False">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="UserName" Header="User Name"/>
<telerikGrid:DataGridTextColumn PropertyName="UserEmail" Header="User Email"/>
<telerikGrid:DataGridBooleanColumn PropertyName="UserActiveIndicator" Header="User Status" />
<telerikGrid:DataGridDateColumn PropertyName="RecordCreated" Header="Date Created"/>
<telerikGrid:DataGridDateColumn PropertyName="RecordModified" Header="Date Modified"/>
<telerikGrid:DataGridTemplateColumn Header="Edit" Width="81">
<telerikGrid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate x:DataType="vm:SearchUserViewModel">
<Button x:Name="editButton" Command="{x:Bind EditUserCommand}" CommandParameter="{Binding }">
<SymbolIcon Symbol="Edit"/>
</Button>
</DataTemplate>
</telerikGrid:DataGridTemplateColumn.CellContentTemplate>
</telerikGrid:DataGridTemplateColumn>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>