有没有办法将一个参数(或多个参数)传递给 CallMethodAction
行为?
最佳答案
尝试使用 InvokeCommandAction 命令而不是使用 CallMethodAction:
<i:Interaction.Triggers>
<i:EventTrigger EventName="TextChanged">
<i:InvokeCommandAction Command="{Binding TextChangedCommand}"
CommandParameter="{Binding ElementName=filterBox, Path=Text}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
希望能帮助到你
关于xaml - 有没有办法将参数(或多个参数)传递给 CallMethodAction 行为?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5073065/