Skip to content

MAUI Community Toolkit EventToCommandBehavior doesn't seem to be able to call RelayCommands #30595

Closed
@Deus-nsf

Description

@Deus-nsf

Description

Immediatly below my page ContentPage description, I have this:

Image

My viewmodel is properly referenced in the x:dataType, and visual studio even recognizes the RelayCommand, but the Command is never called (even with a breakpoint inside)
If I don't use that and just override the OnAppearing method in code behind it works.

This is my reference to the community toolkit, hopefully it's the right one?

Image

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions