Command="{Binding GoPayCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
原文:https://www.cnblogs.com/zisai/p/11082666.html