-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
MenuFlyout ItemsSource item binding command always disabled #15689
Comments
Hi @29654761 - I've tried to reproduce your problem but unfortunately I don't have enough information to be able to do so. For example, the Would you be able to create a minimal repro in the form of a GitHub repository or a .zip file that I can run? In addition are you seeing any binding errors being logged? |
I Created a new project and copy code, but it works ok.
|
@29654761 that means you are having a DataContext issue most likely. You may need to cast or sprcify See: https://docs.avaloniaui.net/docs/basics/data/data-binding/compiled-bindings Note If you upload a minimal sample and we verify it is an issue, I'll reopen this issue. |
@timunie This minimal sample can reproduce the issue.
|
AvaloniaApplication1.zip |
The repo is great. Points out, it works if:
No clue why, but maybe @grokys has an idea where to look at. No priorty issue, as we have enough ways to make the same thing working. |
Describe the bug
After I upgrade to 11.1.0-beta2, all my menu items are disabled.
To Reproduce
The menu items are always disabled.
If I remove
MenuItem will be enabled.
This code is work fine on 11.0.10,
Expected behavior
No response
Avalonia version
11.1.0-beta2
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: