Skip to content
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

CanAccept and CanCancel being called every time when the user view loads #6

Open
lekrieg opened this issue Oct 30, 2024 · 1 comment

Comments

@lekrieg
Copy link

lekrieg commented Oct 30, 2024

It's a strange behavior but these guys are being called every time you call the CustomDialogBox or something that uses the DelegateCommand. I think it's a issue because you are executing the code in the wrong time.

@lekrieg
Copy link
Author

lekrieg commented Oct 30, 2024

If I remove the commands from the buttons this behavior stop. I think that internally avalonia is calling the property change and somehow the CanExecute is being called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant