给目标DataContext节点一个Name
<StackPanel DataContext="{Binding ElementName=mylist, Path=DataContext}">
<Button
Command="{Binding DeleteItemCmd}"
Content
给目标DataContext节点一个Name
<StackPanel DataContext="{Binding ElementName=mylist, Path=DataContext}">
<Button
Command="{Binding DeleteItemCmd}"
Content