传递参数以及命令绑定 [英] Passing Parameters along with the Command Binding
本文介绍了传递参数以及命令绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用中继命令使用命令绑定
但是是否可以将参数以及绑定在Xaml文件中的命令传递给
I am using the command binding using the relay command
But is it possible to pass parameters along with the command binded in the Xaml file
推荐答案
是.有可能.
Yes. It is possible.
<Button
Command="{Binding Path=myCommand}"
CommandParameter="myParam"/>
这篇关于传递参数以及命令绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文