Replies: 1 comment 1 reply
-
You can do it by changing the element's ActionTarget: <Button Content="Add Port" s:View.ActionTarget="{Binding Ports}" Command="{s:Action AddPort}"/> You can set the ActionTarget on a parent element and it will be inherited by all child elements, if that helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to bind command to viewmodel's property's method, instead of viewmodel's method? For example:
where
Ports
is a viewmodel property who has its own methodAddPort
.I've tried and it failed, but I'd like to confirm it won't work before I go ahead and create every wrapper method in viewmodel. I surely hope it will work as creating dozens of wrapper methods isn't that fun! Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions