I make extensive use of Expression interactions' CallMethodAction to handle events from XAML in a MVVM-friendly way.
I have just created a new WPF project in VS2017 and now I see the old Expression namespace is gone. I found this page on MSDN which is the action I'm looking for but after referencing that assembly and adding the namespace it does not contain the CallMethodAction. That page is for Silverlight and this is WPF, so I'm concerned that action is no longer available.
So does anyone know if it has in fact been removed/replaced? How is one supposed to call event handlers on the viewmodel now?
(I do know about InvokeCommandAction, but I prefer CallMethodAction since it relays the original event arguments, and allows for canceling preview events.)
Edit: Just to move forward I tried InvokeCommandAction but it no longer works the same way either and I cannot find any documentation on the new usage.
I did find this reference on MSDN for the Microsoft.Xaml.Interactions namespace which appears to contain the classes I need, but that assembly doesn't appear to exist.
I feel like I'm missing something obvious here. I don't see how they could make a breaking change to something as basic as responding to events.
NET Framework 3.0. Expression Blend and Expression Web are also available as part of the MSDN Premium subscription. In December 2012 Microsoft announced that they discontinued the standalone Expression suite tools. Expression Blend was integrated into Visual Studio 2012 and Visual Studio Express for Windows 8.
Use the Visual Studio 2017 installer to install "Blend for Visual Studio SDK for .NET", which you can find on the "Individual components" page, under the "SDKs, libraries, and frameworks" heading.
A little update as for 2020:
As mentioned by Jan in other question:
Microsoft open-sourced XAML Behaviours and posted a blog post how to update to this version.
Steps to proceed with update:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With