处理方法:
<Button Content="删除" Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=ListView}, Path=DataContext.DeleteCommand}" CommandParameter="{Binding ID,Mode=TwoWay}"/><Button Content="删除" Command="{Binding
处理方法:
<Button Content="删除" Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=ListView}, Path=DataContext.DeleteCommand}" CommandParameter="{Binding ID,Mode=TwoWay}"/><Button Content="删除" Command="{Binding