当我在 MVVM-WPF 中使用 CallMethodAction
时,出现此错误:
"CallMethodAction" does not exist in the namespace "http://schemas.microsoft.com/expression/2010/interactions".
知道我在 xaml 中包含以下命名空间:
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
如果仅用于 SL,WPF 中的等效项是什么
最佳答案
CallMethodAction
位于 http://schemas.microsoft.com/expression/2010/interactions
命名空间中。
您需要在项目中添加对 Microsoft.Expression.Interactions.dll
的引用。
关于wpf - 调用方法操作 : can it be used in WPF?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16219347/