wpf Command 携带当前窗口

 Command="{Binding GoPayCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"

 原文:https://www.cnblogs.com/zisai/p/11082666.html 

posted @ 2019-06-25 14:32  姚赛  阅读(519)  评论(0编辑  收藏  举报