-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvokeCommandAction - add additional properties for more MVVM scenarios #12
Comments
I think it is a good idea but instead of eventargsparameterPath i would like to have a DisplayMemberPath in order to be able to select a property value fron the event args OR the result of the converter(post-evaluated) |
DisplayMemberPath has a different meaning in WPF and does not apply to this concept. If anything, ValueMemberPath would be closer, however it is still not clear exactly what that name does in the context of the InvokeCommandAction behavior. However, I am not against an |
Agree for the converter params, am always a little worried about Path / reflection based properties. But can see how it would be useful. As long as all three play well together. Would ParameterPath affect the value passed to the converter? |
No. The parameters path takes precedent over the EventArgsConverter. If the EventArgsParametrPath is not set, then the EventArgsConverter would be used (only if PassEventArgsToCommand was set to true). The order of operations is as follow:
|
I was almost thinking that |
Fixed with PR #14 |
why isnot there a sample about PassEventArgsToCommand |
I would like to suggest we add some additional properties to the InvokeCommandAction to make it more useful in WPF applications using the MVVM pattern.
Suggested properties:
Thoughts?
The text was updated successfully, but these errors were encountered: