A quick post about setting commands within DataTemplates when using the MVVM pattern!
When you are inside a DataTemplate the DataContext is changed to the the current item, so to access the command you will need to use the “relative source”
<Button Content="Delete" Width="Auto"
Hope this real quick note helps save you some time!!
Until next time!