<telerik:GridViewDataColumn Width="25"> |
<telerik:GridViewDataColumn.CellStyle> |
<Style TargetType="telerik:GridViewCell"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="telerik:GridViewCell"> |
<Button |
Command="{Binding IngredientDeleteCommand}" |
HorizontalAlignment="Center" |
VerticalAlignment="Center"> |
<Image Height="20" Width="20" Source="/CakeBoss.WPF;component/Images/delete.png" /> |
</Button> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
</telerik:GridViewDataColumn.CellStyle> |
</telerik:GridViewDataColumn> |
I've got a column that is for deleting a row, and I'm using MVVM so i'm binding to a command instead of using the click event on the button. The command does not fire from inside the grid, but the Click event does. If I copy the button outside the grid the button works just great. Any clues?