Open 29654761 opened 6 months ago
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 #PART_Frame
control that is the source of your command isn't included in your example code.
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. The raw project is created from old version, I tried to figure out the diffence, I found out remove the below line in csproj file can work fine.
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
@29654761 that means you are having a DataContext issue most likely. You may need to cast or sprcify x:DataType
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.
@29654761 that means you are having a DataContext issue most likely. You may need to cast or sprcify
x:DataType
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.
AvaloniaApplication1.zip Sorry , I uploaded again.
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