I was wondering if it was possible to send multiple parameters to a method that gets invoked by TriggerAction? I am able to pass a single value using the MethodParameter attribute, but I need to be able to pass multiple values. How can I do this?
Normally you don't pass any parameters to a viewmodel method. The MethodParameter concept is there as an emergency fallback for a few edge cases where you need access to an otherwise non-bindable value.
The way this should work is that you bind the properties you need from the UI to properties on your viewmodel. Then use TriggerAction to invoke a method on the viewmodel, and that method can use the property values to get the information required.
Copyright (c) Marimer LLC