Binding CommandParameter in MAUI #664
Unanswered
CaseNewmark
asked this question in
Q&A
Replies: 1 comment
-
I'm not sure I'm following, what breaks exactly? What error are you getting? Can you share more info to clarify what you mean? Thank you! 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
When using the CommunityToolkit.MVVM RelayCommand with MAUI any CommandParameter can only be of type
object
. When doing the same thing on a WinUI project it works.When doing this it totally messes up any
Binding
in XAML. As an example take the code from the official documentation here:https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/relative-bindings?view=net-maui-7.0
Extent the ´DeleteEmployeeCommand´ to have a CommandParameter of type
Employee
.Is this intentional? At least it is inconsistent between Winui and Maui.
Beta Was this translation helpful? Give feedback.
All reactions